Skip to content

Commit

Permalink
Merge pull request #11793 from greg0ire/doctrine-common-support
Browse files Browse the repository at this point in the history
Ignore deprecations from doctrine/common
  • Loading branch information
greg0ire authored Jan 18, 2025
2 parents e3cabad + 44d5d4a commit c12fd2c
Showing 1 changed file with 63 additions and 0 deletions.
63 changes: 63 additions & 0 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -3144,6 +3144,15 @@ parameters:
count: 1
path: src/Persisters/SqlValueVisitor.php

-
message: '''
#^Class Doctrine\\ORM\\Proxy\\Autoloader extends deprecated class Doctrine\\Common\\Proxy\\Autoloader\:
The Autoloader class is deprecated since doctrine/common 3\.5\.$#
'''
identifier: class.extendsDeprecatedClass
count: 1
path: src/Proxy/Autoloader.php

-
message: '#^Method Doctrine\\ORM\\Proxy\\DefaultProxyClassNameResolver\:\:resolveClassName\(\) should return class\-string\<T of object\> but returns class\-string\<Doctrine\\Persistence\\Proxy\<T of object\>\>\|class\-string\<T of object\>\.$#'
identifier: return.type
Expand Down Expand Up @@ -3186,6 +3195,42 @@ parameters:
count: 1
path: src/Proxy/ProxyFactory.php

-
message: '''
#^Call to method __construct\(\) of deprecated class Doctrine\\Common\\Proxy\\AbstractProxyFactory\:
The AbstractProxyFactory class is deprecated since doctrine/common 3\.5\.$#
'''
identifier: staticMethod.deprecatedClass
count: 1
path: src/Proxy/ProxyFactory.php

-
message: '''
#^Call to method generateProxyClasses\(\) of deprecated class Doctrine\\Common\\Proxy\\AbstractProxyFactory\:
The AbstractProxyFactory class is deprecated since doctrine/common 3\.5\.$#
'''
identifier: staticMethod.deprecatedClass
count: 1
path: src/Proxy/ProxyFactory.php

-
message: '''
#^Call to method getProxy\(\) of deprecated class Doctrine\\Common\\Proxy\\AbstractProxyFactory\:
The AbstractProxyFactory class is deprecated since doctrine/common 3\.5\.$#
'''
identifier: staticMethod.deprecatedClass
count: 1
path: src/Proxy/ProxyFactory.php

-
message: '''
#^Class Doctrine\\ORM\\Proxy\\ProxyFactory extends deprecated class Doctrine\\Common\\Proxy\\AbstractProxyFactory\:
The AbstractProxyFactory class is deprecated since doctrine/common 3\.5\.$#
'''
identifier: class.extendsDeprecatedClass
count: 1
path: src/Proxy/ProxyFactory.php

-
message: '#^Comparison operation "\<" between 0\|1\|2\|3\|4 and 0 is always false\.$#'
identifier: smaller.alwaysFalse
Expand All @@ -3198,6 +3243,15 @@ parameters:
count: 1
path: src/Proxy/ProxyFactory.php

-
message: '''
#^Instantiation of deprecated class Doctrine\\Common\\Proxy\\ProxyGenerator\:
The ProxyGenerator class is deprecated since doctrine/common 3\.5\.$#
'''
identifier: new.deprecated
count: 1
path: src/Proxy/ProxyFactory.php

-
message: '#^Method Doctrine\\ORM\\Proxy\\ProxyFactory\:\:createCloner\(\) has Doctrine\\ORM\\EntityNotFoundException in PHPDoc @throws tag but it''s not thrown\.$#'
identifier: throws.unusedType
Expand Down Expand Up @@ -3336,6 +3390,15 @@ parameters:
count: 1
path: src/Proxy/ProxyFactory.php

-
message: '''
#^Return type of method Doctrine\\ORM\\Proxy\\ProxyFactory\:\:getProxy\(\) has typehint with deprecated interface Doctrine\\Common\\Proxy\\Proxy\:
The Proxy interface is deprecated since doctrine/common 3\.5\.$#
'''
identifier: return.deprecatedInterface
count: 1
path: src/Proxy/ProxyFactory.php

-
message: '#^Call to function method_exists\(\) with ''Doctrine\\\\DBAL\\\\Cache\\\\QueryCacheProfile'' and ''getResultCache'' will always evaluate to true\.$#'
identifier: function.alreadyNarrowedType
Expand Down

0 comments on commit c12fd2c

Please sign in to comment.