phpstan.neon.dist 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. parameters:
  2. phpVersion: 70100
  3. level: 3
  4. paths:
  5. - lib
  6. - tests
  7. excludes_analyse:
  8. - lib/vendor/doctrine-build-common
  9. - tests/Doctrine/Tests/Common/Proxy/InvalidReturnTypeClass.php
  10. - tests/Doctrine/Tests/Common/Proxy/InvalidTypeHintClass.php
  11. - tests/Doctrine/Tests/Common/Proxy/LazyLoadableObjectWithTypedProperties.php
  12. - tests/Doctrine/Tests/Common/Proxy/MagicIssetClassWithInteger.php
  13. - tests/Doctrine/Tests/Common/Proxy/NullableNonOptionalHintClass.php
  14. - tests/Doctrine/Tests/Common/Proxy/Php8UnionTypes.php
  15. - tests/Doctrine/Tests/Common/Proxy/ProxyGeneratorTest.php
  16. - tests/Doctrine/Tests/Common/Proxy/ProxyLogicTypedPropertiesTest.php
  17. - tests/Doctrine/Tests/Common/Proxy/SerializedClass.php
  18. - tests/Doctrine/Tests/Common/Proxy/VariadicTypeHintClass.php
  19. - tests/Doctrine/Tests/Common/Proxy/generated
  20. ignoreErrors:
  21. - '#Access to an undefined property Doctrine\\Common\\Proxy\\Proxy::\$publicField#'
  22. -
  23. message: '#^Result of method Doctrine\\Tests\\Common\\Proxy\\LazyLoadableObjectWithVoid::(adding|incrementing)AndReturningVoid\(\) \(void\) is used\.$#'
  24. path: 'tests/Doctrine/Tests/Common/Proxy/ProxyLogicVoidReturnTypeTest.php'
  25. -
  26. message: '#^Property Doctrine\\Tests\\Common\\Proxy\\ProxyLogicTest::\$initializerCallbackMock \(callable\(\): mixed&PHPUnit\\Framework\\MockObject\\MockObject\) does not accept PHPUnit\\Framework\\MockObject\\MockObject&stdClass\.$#'
  27. path: 'tests/Doctrine/Tests/Common/Proxy/ProxyLogicTest.php'
  28. -
  29. message: '#^Access to an undefined property Doctrine\\Common\\Proxy\\Proxy&Doctrine\\Tests\\Common\\Proxy\\LazyLoadableObject::\$non_existing_property\.$#'
  30. path: 'tests/Doctrine/Tests/Common/Proxy/ProxyLogicTest.php'
  31. -
  32. message: '#^Instantiated class Doctrine\\Tests\\Common\\ProxyProxy\\__CG__\\Doctrine\\Tests\\Common\\Proxy\\.* not found.$#'
  33. path: 'tests/Doctrine/Tests/Common/Proxy/ProxyLogicTest.php'
  34. -
  35. message: '#^Instantiated class Doctrine\\Tests\\Common\\ProxyProxy\\__CG__\\Doctrine\\Tests\\Common\\Proxy\\.* not found.$#'
  36. path: 'tests/Doctrine/Tests/Common/Proxy/ProxyLogicVoidReturnTypeTest.php'
  37. -
  38. message: '#^Property Doctrine\\Tests\\Common\\Proxy\\ProxyLogicVoidReturnTypeTest::\$initializerCallbackMock \(callable\(\): mixed&PHPUnit\\Framework\\MockObject\\MockObject\) does not accept PHPUnit\\Framework\\MockObject\\MockObject&stdClass\.$#'
  39. path: 'tests/Doctrine/Tests/Common/Proxy/ProxyLogicVoidReturnTypeTest.php'
  40. -
  41. message: '#^Method Doctrine\\Tests\\Common\\Proxy\\MagicIssetClassWithInteger::__isset\(\) should return bool but returns int\.$#'
  42. path: 'tests/Doctrine/Tests/Common/Proxy/MagicIssetClassWithInteger.php'
  43. -
  44. message: '#^Access to an undefined property Doctrine\\Tests\\Common\\Proxy\\MagicGetByRefClass\:\:\$nonExisting\.$#'
  45. path: 'tests/Doctrine/Tests/Common/Proxy/ProxyMagicMethodsTest.php'
  46. includes:
  47. - vendor/phpstan/phpstan-phpunit/extension.neon
  48. - vendor/phpstan/phpstan-phpunit/rules.neon