Skip to content

Commit c12fd2c

Browse files
authored
Merge pull request doctrine#11793 from greg0ire/doctrine-common-support
Ignore deprecations from doctrine/common
2 parents e3cabad + 44d5d4a commit c12fd2c

File tree

1 file changed

+63
-0
lines changed

1 file changed

+63
-0
lines changed

phpstan-baseline.neon

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3144,6 +3144,15 @@ parameters:
31443144
count: 1
31453145
path: src/Persisters/SqlValueVisitor.php
31463146

3147+
-
3148+
message: '''
3149+
#^Class Doctrine\\ORM\\Proxy\\Autoloader extends deprecated class Doctrine\\Common\\Proxy\\Autoloader\:
3150+
The Autoloader class is deprecated since doctrine/common 3\.5\.$#
3151+
'''
3152+
identifier: class.extendsDeprecatedClass
3153+
count: 1
3154+
path: src/Proxy/Autoloader.php
3155+
31473156
-
31483157
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\>\.$#'
31493158
identifier: return.type
@@ -3186,6 +3195,42 @@ parameters:
31863195
count: 1
31873196
path: src/Proxy/ProxyFactory.php
31883197

3198+
-
3199+
message: '''
3200+
#^Call to method __construct\(\) of deprecated class Doctrine\\Common\\Proxy\\AbstractProxyFactory\:
3201+
The AbstractProxyFactory class is deprecated since doctrine/common 3\.5\.$#
3202+
'''
3203+
identifier: staticMethod.deprecatedClass
3204+
count: 1
3205+
path: src/Proxy/ProxyFactory.php
3206+
3207+
-
3208+
message: '''
3209+
#^Call to method generateProxyClasses\(\) of deprecated class Doctrine\\Common\\Proxy\\AbstractProxyFactory\:
3210+
The AbstractProxyFactory class is deprecated since doctrine/common 3\.5\.$#
3211+
'''
3212+
identifier: staticMethod.deprecatedClass
3213+
count: 1
3214+
path: src/Proxy/ProxyFactory.php
3215+
3216+
-
3217+
message: '''
3218+
#^Call to method getProxy\(\) of deprecated class Doctrine\\Common\\Proxy\\AbstractProxyFactory\:
3219+
The AbstractProxyFactory class is deprecated since doctrine/common 3\.5\.$#
3220+
'''
3221+
identifier: staticMethod.deprecatedClass
3222+
count: 1
3223+
path: src/Proxy/ProxyFactory.php
3224+
3225+
-
3226+
message: '''
3227+
#^Class Doctrine\\ORM\\Proxy\\ProxyFactory extends deprecated class Doctrine\\Common\\Proxy\\AbstractProxyFactory\:
3228+
The AbstractProxyFactory class is deprecated since doctrine/common 3\.5\.$#
3229+
'''
3230+
identifier: class.extendsDeprecatedClass
3231+
count: 1
3232+
path: src/Proxy/ProxyFactory.php
3233+
31893234
-
31903235
message: '#^Comparison operation "\<" between 0\|1\|2\|3\|4 and 0 is always false\.$#'
31913236
identifier: smaller.alwaysFalse
@@ -3198,6 +3243,15 @@ parameters:
31983243
count: 1
31993244
path: src/Proxy/ProxyFactory.php
32003245

3246+
-
3247+
message: '''
3248+
#^Instantiation of deprecated class Doctrine\\Common\\Proxy\\ProxyGenerator\:
3249+
The ProxyGenerator class is deprecated since doctrine/common 3\.5\.$#
3250+
'''
3251+
identifier: new.deprecated
3252+
count: 1
3253+
path: src/Proxy/ProxyFactory.php
3254+
32013255
-
32023256
message: '#^Method Doctrine\\ORM\\Proxy\\ProxyFactory\:\:createCloner\(\) has Doctrine\\ORM\\EntityNotFoundException in PHPDoc @throws tag but it''s not thrown\.$#'
32033257
identifier: throws.unusedType
@@ -3336,6 +3390,15 @@ parameters:
33363390
count: 1
33373391
path: src/Proxy/ProxyFactory.php
33383392

3393+
-
3394+
message: '''
3395+
#^Return type of method Doctrine\\ORM\\Proxy\\ProxyFactory\:\:getProxy\(\) has typehint with deprecated interface Doctrine\\Common\\Proxy\\Proxy\:
3396+
The Proxy interface is deprecated since doctrine/common 3\.5\.$#
3397+
'''
3398+
identifier: return.deprecatedInterface
3399+
count: 1
3400+
path: src/Proxy/ProxyFactory.php
3401+
33393402
-
33403403
message: '#^Call to function method_exists\(\) with ''Doctrine\\\\DBAL\\\\Cache\\\\QueryCacheProfile'' and ''getResultCache'' will always evaluate to true\.$#'
33413404
identifier: function.alreadyNarrowedType

0 commit comments

Comments
 (0)