phpstan.neon 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  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. -
  15. message: '#Undefined variable: .+#'
  16. path: '%rootDir%/../../../src/View/Helper/TreeHelper.php'
  17. -
  18. message: '#Variable \$.+ might not be defined.#'
  19. path: '%rootDir%/../../../src/View/Helper/TreeHelper.php'
  20. -
  21. message: '#Negated boolean expression is always true.#'
  22. path: '%rootDir%/../../../src/View/Helper/TreeHelper.php'
  23. -
  24. message: '#Result of \|\| is always true.#'
  25. path: '%rootDir%/../../../src/View/Helper/TreeHelper.php'
  26. -
  27. message: '#Cannot unset offset string on array.+\.#'
  28. path: '%rootDir%/../../../src/Utility/Language.php'
  29. -
  30. message: '#Instanceof between mixed and .+ComparisonExpression will always evaluate to false\.#'
  31. path: '%rootDir%/../../../src/Model/Behavior/BitmaskedBehavior.php'
  32. services:
  33. -
  34. class: Cake\PHPStan\AssociationTableMixinClassReflectionExtension