From 745cf2431a71d0e6c5f08f8605839279b2f7496e Mon Sep 17 00:00:00 2001 From: Devian Date: Thu, 22 Apr 2021 17:03:46 +0800 Subject: Initiate commit --- vendor/doctrine/common/phpstan.neon.dist | 49 ++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 vendor/doctrine/common/phpstan.neon.dist (limited to 'vendor/doctrine/common/phpstan.neon.dist') 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 -- cgit v1.2.3