phpstan.neon 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. parameters:
  2. level: 3
  3. autoload_files:
  4. - tests/bootstrap.php
  5. ignoreErrors:
  6. - '#Constructor of class Cake\\[a-zA-Z0-9_\\]+ has an unused parameter#'
  7. - '#Access to undefined constant Memcached::OPT_CLIENT_MODE#'
  8. - '#Access to undefined constant Memcached::DYNAMIC_CLIENT_MODE#'
  9. - '#Access to undefined constant PDO::SQLSRV_ATTR_ENCODING#'
  10. - '#Access to undefined constant PDO::SQLSRV_ENCODING_BINARY#'
  11. - '#Access to an undefined property Psr\\Http\\Message\\UriInterface::\$webroot#'
  12. - '#Access to an undefined property Psr\\Http\\Message\\UriInterface::\$base#'
  13. - '#Access to an undefined property Exception::\$queryString#'
  14. - '#Access to an undefined property PHPUnit\\Framework\\Test::\$fixtureManager#'
  15. - '#Call to an undefined method Traversable::getArrayCopy().#'
  16. - '#Cannot call method lastInsertId\(\) on null#'
  17. - '#Access to an undefined property Cake\\Mailer\\Renderer::\$request#'
  18. - '#Access to an undefined property Cake\\Mailer\\Renderer::\$response#'
  19. - '#Call to an undefined method Cake\\Auth\\Storage\\StorageInterface::getConfig\(\)#'
  20. - '#Call to an undefined method Cake\\Auth\\Storage\\StorageInterface::setConfig\(\)#'
  21. - '#Variable \$_SESSION in isset\(\) always exists and is not nullable#'
  22. - '#Access to an undefined static property Cake\\Mailer\\Email::\$_dsnClassMap#'
  23. - '#PHPDoc tag @throws with type PHPUnit\\Exception|Throwable is not subtype of Throwable#'
  24. - '#Binary operation "\+" between array|false and array results in an error#'
  25. - '#Variable \$validWidth in isset\(\) always exists and is not nullable#'
  26. - '#Variable \$validHeight in isset\(\) always exists and is not nullable#'
  27. -
  28. message: '#Binary operation "-" between (.)* results in an error#'
  29. path: 'src/I18n/RelativeTimeFormatter.php'
  30. - '#Static property Cake\\Chronos\\(Date|Chronos|MutableDate|MutableDateTime)::\$diffFormatter \(Cake\\Chronos\\DifferenceFormatter\) does not accept Cake\\I18n\\RelativeTimeFormatter#'
  31. - '#Return type \(void\) of method Cake\\Shell\\[A-Za-z]+Shell::main\(\) should be compatible with return type \(bool|int|null\) of method Cake\\Console\\Shell::main\(\)#'
  32. - '#Property Cake\\TestSuite\\Fixture\\TestFixture::\$_schema \(Cake\\Database\\Schema\\SqlGeneratorInterface&Cake\\Database\\Schema\\TableSchemaInterface\) does not accept Cake\\Database\\Schema\\TableSchemaInterface#'
  33. -
  34. message: '#Offset mixed does not exist on array\(\)|array\(2 => mixed\)|array\(string, string\)#'
  35. path: 'src/Database/Dialect/SqlserverDialectTrait.php'
  36. -
  37. message: '#Offset 0 does not exist on array\(\)#'
  38. path: 'src/Database/Dialect/SqlserverDialectTrait.php'
  39. - '#Return type \(null\) of method Cake\\Collection\\Iterator\\NoChildrenIterator::getChildren\(\) should be compatible with return type \(RecursiveIterator\) of method RecursiveIterator::getChildren\(\)#'
  40. earlyTerminatingMethodCalls:
  41. Cake\Console\Shell:
  42. - abort
  43. services:
  44. -
  45. class: Cake\PHPStan\AssociationTableMixinClassReflectionExtension
  46. tags:
  47. - phpstan.broker.methodsClassReflectionExtension
  48. - phpstan.broker.propertiesClassReflectionExtension