phpstan.neon 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. parameters:
  2. level: 5
  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. - '#PHPDoc tag @throws with type PHPUnit\\Exception|Throwable is not subtype of Throwable#'
  23. - '#Call to an undefined method Cake\\Chronos\\DifferenceFormatterInterface::dateAgoInWords\(\)#'
  24. - '#Call to an undefined method Cake\\Chronos\\DifferenceFormatterInterface::timeAgoInWords\(\)#'
  25. - '#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\(\)#'
  26. - '#Return type \(null\) of method Cake\\Collection\\Iterator\\NoChildrenIterator::getChildren\(\) should be compatible with return type \(RecursiveIterator\) of method RecursiveIterator::getChildren\(\)#'
  27. - '#Call to an undefined method DateTimeInterface::setTimezone\(\)#'
  28. - '#Parameter \#1 \$filename of function fopen expects string, resource given.#'
  29. - '#Parameter \#1 \$it of method AppendIterator::append\(\) expects Iterator, Traversable given.#'
  30. - '#Parameter \#1 \$it of class .+Iterator constructor expects Iterator, Traversable given.#'
  31. - '#Parameter \#1 \$assoc of method Cake\\ORM\\Marshaller::_belongsToMany\(\) expects .+BelongsToMany, Cake\\ORM\\Association given.#'
  32. - '#Parameter \#2 \$assoc of method Cake\\ORM\\Marshaller::_mergeBelongsToMany\(\) expects .+BelongsToMany, Cake\\ORM\\Association given.#'
  33. - '#Parameter \#1 \$table of method Cake\\ORM\\Query::addDefaultTypes\(\) expects Cake\\ORM\\Table, .+RepositoryInterface given.#'
  34. - '#Parameter \#1 \$table of method Cake\\ORM\\Query::_addAssociationsToTypeMap\(\) expects Cake\\ORM\\Table, .+RepositoryInterface given.#'
  35. - '#Property Cake\\Controller\\Controller::\$response \(Cake\\Http\\Response\) does not accept Psr\\Http\\Message\\ResponseInterface#'
  36. -
  37. message: '#Right side of && is always false#'
  38. path: 'src/Cache/Engine/MemcachedEngine.php'
  39. -
  40. message: '#Call to function method_exists\(\) with string and [^ ]+ will always evaluate to false#'
  41. path: 'src/Controller/Component/AuthComponent.php'
  42. -
  43. message: '#Result of && is always false#'
  44. path: 'src/Database/Query.php'
  45. -
  46. message: "#Call to function method_exists\\(\\) with string and 'parseDateTime' will always evaluate to false#"
  47. path: 'src/Database/Type/DateTimeType.php'
  48. -
  49. message: '#Result of && is always false#'
  50. path: 'src/Datasource/QueryCacher.php'
  51. -
  52. message: '#Result of && is always false#'
  53. path: 'src/Routing/Route/EntityRoute.php'
  54. -
  55. message: '#Call to an undefined method Cake\\ORM\\Association::junction\(\).#'
  56. path: 'src/View/Form/EntityContext.php'
  57. -
  58. message: '#Parameter \#1 \$var_array of function extract is passed by reference, so it expects variables only#'
  59. path: 'src/Command/I18nExtractCommand.php'
  60. -
  61. message: '#Result of || is always true#'
  62. path: 'src/Command/I18nExtractCommand.php'
  63. -
  64. message: '#Result of || is always true#'
  65. path: 'src/Utility/Hash.php'
  66. -
  67. message: '#Call to function method_exists\(\) with \*NEVER\* and [^ ]+ will always evaluate to false#'
  68. path: 'src/View/CellTrait.php'
  69. -
  70. message: '#Method Cake\\Utility\\Security::engine\(\) should return Cake\\Utility\\Crypto\\OpenSsl but returns object#'
  71. path: 'src/Utility/Security.php'
  72. -
  73. message: '#Method Cake\\Http\\Middleware\\CspMiddleware::process\(\) should return Psr\\Http\\Message\\ResponseInterface but returns Psr\\Http\\Message\\MessageInterface#'
  74. path: 'src/Http/Middleware/CspMiddleware.php'
  75. -
  76. message: '#Parameter \#1 \$connection of method Cake\\Database\\Schema\\SqlGeneratorInterface::(create|drop|truncate)Sql\(\) expects Cake\\Database\\Connection, Cake\\Datasource\\ConnectionInterface given#'
  77. path: 'src/TestSuite/Fixture/TestFixture.php'
  78. earlyTerminatingMethodCalls:
  79. Cake\Console\Shell:
  80. - abort
  81. services:
  82. -
  83. class: Cake\PHPStan\AssociationTableMixinClassReflectionExtension
  84. tags:
  85. - phpstan.broker.methodsClassReflectionExtension
  86. - phpstan.broker.propertiesClassReflectionExtension