phpstan.neon 1.4 KB

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