phpstan.neon 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. parameters:
  2. level: 6
  3. paths:
  4. - src/
  5. checkMissingIterableValueType: false
  6. checkGenericClassInNonGenericObjectType: false
  7. bootstrapFiles:
  8. - %rootDir%/../../../tests/bootstrap.php
  9. excludePaths:
  10. - %rootDir%/../../../src/TestSuite/*
  11. - %rootDir%/../../../src/Utility/Mime
  12. reportUnmatchedIgnoredErrors: false
  13. ignoreErrors:
  14. - '#Class Cake\\Chronos\\Date not found.#'
  15. -
  16. message: '#Undefined variable: .+#'
  17. path: '%rootDir%/../../../src/View/Helper/TreeHelper.php'
  18. -
  19. message: '#Variable \$.+ might not be defined.#'
  20. path: '%rootDir%/../../../src/View/Helper/TreeHelper.php'
  21. -
  22. message: '#Negated boolean expression is always true.#'
  23. path: '%rootDir%/../../../src/View/Helper/TreeHelper.php'
  24. -
  25. message: '#Result of \|\| is always true.#'
  26. path: '%rootDir%/../../../src/View/Helper/TreeHelper.php'
  27. -
  28. message: '#Cannot unset offset string on array.+\.#'
  29. path: '%rootDir%/../../../src/Utility/Language.php'
  30. -
  31. message: '#Instanceof between mixed and .+ComparisonExpression will always evaluate to false\.#'
  32. path: '%rootDir%/../../../src/Model/Behavior/BitmaskedBehavior.php'
  33. - '#Parameter \#4 \$flags of function preg_match expects TFlags of 0\|256\|512\|768, int given.#'
  34. - '#Parameter \#2 \$\w+ of function datefmt_format expects .+, DateTimeInterface given.#'
  35. services:
  36. -
  37. class: Cake\PHPStan\AssociationTableMixinClassReflectionExtension