phpstan.neon 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. parameters:
  2. level: 6
  3. paths:
  4. - src/
  5. checkMissingIterableValueType: false
  6. checkGenericClassInNonGenericObjectType: false
  7. treatPhpDocTypesAsCertain: false
  8. bootstrapFiles:
  9. - %rootDir%/../../../tests/bootstrap.php
  10. excludePaths:
  11. - %rootDir%/../../../src/TestSuite/*
  12. - %rootDir%/../../../src/Utility/Mime
  13. reportUnmatchedIgnoredErrors: false
  14. ignoreErrors:
  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. - '#Unsafe usage of new static\(\)#'
  36. services:
  37. -
  38. class: Cake\PHPStan\AssociationTableMixinClassReflectionExtension