diff options
Diffstat (limited to 'vendor/doctrine/common/phpstan.neon.dist')
-rw-r--r-- | vendor/doctrine/common/phpstan.neon.dist | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/vendor/doctrine/common/phpstan.neon.dist b/vendor/doctrine/common/phpstan.neon.dist new file mode 100644 index 0000000..e63c669 --- /dev/null +++ b/vendor/doctrine/common/phpstan.neon.dist @@ -0,0 +1,49 @@ +parameters: + phpVersion: 70100 + level: 3 + paths: + - lib + - tests + excludes_analyse: + - lib/vendor/doctrine-build-common + - tests/Doctrine/Tests/Common/Proxy/InvalidReturnTypeClass.php + - tests/Doctrine/Tests/Common/Proxy/InvalidTypeHintClass.php + - tests/Doctrine/Tests/Common/Proxy/LazyLoadableObjectWithTypedProperties.php + - tests/Doctrine/Tests/Common/Proxy/MagicIssetClassWithInteger.php + - tests/Doctrine/Tests/Common/Proxy/NullableNonOptionalHintClass.php + - tests/Doctrine/Tests/Common/Proxy/Php8UnionTypes.php + - tests/Doctrine/Tests/Common/Proxy/ProxyGeneratorTest.php + - tests/Doctrine/Tests/Common/Proxy/ProxyLogicTypedPropertiesTest.php + - tests/Doctrine/Tests/Common/Proxy/SerializedClass.php + - tests/Doctrine/Tests/Common/Proxy/VariadicTypeHintClass.php + - tests/Doctrine/Tests/Common/Proxy/generated + ignoreErrors: + - '#Access to an undefined property Doctrine\\Common\\Proxy\\Proxy::\$publicField#' + - + message: '#^Result of method Doctrine\\Tests\\Common\\Proxy\\LazyLoadableObjectWithVoid::(adding|incrementing)AndReturningVoid\(\) \(void\) is used\.$#' + path: 'tests/Doctrine/Tests/Common/Proxy/ProxyLogicVoidReturnTypeTest.php' + - + message: '#^Property Doctrine\\Tests\\Common\\Proxy\\ProxyLogicTest::\$initializerCallbackMock \(callable\(\): mixed&PHPUnit\\Framework\\MockObject\\MockObject\) does not accept PHPUnit\\Framework\\MockObject\\MockObject&stdClass\.$#' + path: 'tests/Doctrine/Tests/Common/Proxy/ProxyLogicTest.php' + - + message: '#^Access to an undefined property Doctrine\\Common\\Proxy\\Proxy&Doctrine\\Tests\\Common\\Proxy\\LazyLoadableObject::\$non_existing_property\.$#' + path: 'tests/Doctrine/Tests/Common/Proxy/ProxyLogicTest.php' + - + message: '#^Instantiated class Doctrine\\Tests\\Common\\ProxyProxy\\__CG__\\Doctrine\\Tests\\Common\\Proxy\\.* not found.$#' + path: 'tests/Doctrine/Tests/Common/Proxy/ProxyLogicTest.php' + - + message: '#^Instantiated class Doctrine\\Tests\\Common\\ProxyProxy\\__CG__\\Doctrine\\Tests\\Common\\Proxy\\.* not found.$#' + path: 'tests/Doctrine/Tests/Common/Proxy/ProxyLogicVoidReturnTypeTest.php' + - + message: '#^Property Doctrine\\Tests\\Common\\Proxy\\ProxyLogicVoidReturnTypeTest::\$initializerCallbackMock \(callable\(\): mixed&PHPUnit\\Framework\\MockObject\\MockObject\) does not accept PHPUnit\\Framework\\MockObject\\MockObject&stdClass\.$#' + path: 'tests/Doctrine/Tests/Common/Proxy/ProxyLogicVoidReturnTypeTest.php' + - + message: '#^Method Doctrine\\Tests\\Common\\Proxy\\MagicIssetClassWithInteger::__isset\(\) should return bool but returns int\.$#' + path: 'tests/Doctrine/Tests/Common/Proxy/MagicIssetClassWithInteger.php' + - + message: '#^Access to an undefined property Doctrine\\Tests\\Common\\Proxy\\MagicGetByRefClass\:\:\$nonExisting\.$#' + path: 'tests/Doctrine/Tests/Common/Proxy/ProxyMagicMethodsTest.php' + +includes: + - vendor/phpstan/phpstan-phpunit/extension.neon + - vendor/phpstan/phpstan-phpunit/rules.neon |