Skip to content

Commit b1046e4

Browse files
committed
Update phpstan-baseline-dbal-4.neon
1 parent 350789b commit b1046e4

File tree

1 file changed

+125
-34
lines changed

1 file changed

+125
-34
lines changed

phpstan-baseline-dbal-4.neon

Lines changed: 125 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,70 @@
11
parameters:
22
ignoreErrors:
33
-
4-
message: '#^Class Doctrine\\DBAL\\Types\\EnumType not found\.$#'
5-
identifier: class.notFound
4+
rawMessage: '''
5+
Call to method __construct() of deprecated class Doctrine\ORM\Mapping\Driver\AnnotationDriver:
6+
This class will be removed in 3.0 without replacement.
7+
Copyright (c) Doctrine Project
8+
From https://github.com/doctrine/orm/blob/40fbbf4429b0d66517244051237a2bd0616a7a13/src/Mapping/Driver/AnnotationDriver.php
9+
'''
10+
identifier: method.deprecatedClass
611
count: 1
7-
path: src/Type/Doctrine/Descriptors/EnumType.php
12+
path: tests/Classes/entity-manager.php
813

914
-
10-
message: '#^Method PHPStan\\Type\\Doctrine\\Descriptors\\EnumType\:\:getType\(\) should return class\-string\<Doctrine\\DBAL\\Types\\Type\> but returns string\.$#'
11-
identifier: return.type
15+
rawMessage: '''
16+
Instantiation of deprecated class Doctrine\ORM\Mapping\Driver\AnnotationDriver:
17+
This class will be removed in 3.0 without replacement.
18+
Copyright (c) Doctrine Project
19+
From https://github.com/doctrine/orm/blob/40fbbf4429b0d66517244051237a2bd0616a7a13/src/Mapping/Driver/AnnotationDriver.php
20+
'''
21+
identifier: new.deprecatedClass
1222
count: 1
13-
path: src/Type/Doctrine/Descriptors/EnumType.php
23+
path: tests/Classes/entity-manager.php
1424

1525
-
16-
message: '#^Class Doctrine\\DBAL\\Types\\SmallFloatType not found\.$#'
17-
identifier: class.notFound
26+
rawMessage: '''
27+
Call to method __construct() of deprecated class Doctrine\ORM\Mapping\Driver\AnnotationDriver:
28+
This class will be removed in 3.0 without replacement.
29+
Copyright (c) Doctrine Project
30+
From https://github.com/doctrine/orm/blob/40fbbf4429b0d66517244051237a2bd0616a7a13/src/Mapping/Driver/AnnotationDriver.php
31+
'''
32+
identifier: method.deprecatedClass
1833
count: 1
19-
path: src/Type/Doctrine/Descriptors/SmallFloatType.php
34+
path: tests/DoctrineIntegration/ORM/entity-manager.php
2035

2136
-
22-
message: '#^Method PHPStan\\Type\\Doctrine\\Descriptors\\SmallFloatType\:\:getType\(\) should return class\-string\<Doctrine\\DBAL\\Types\\Type\> but returns string\.$#'
23-
identifier: return.type
37+
rawMessage: '''
38+
Instantiation of deprecated class Doctrine\ORM\Mapping\Driver\AnnotationDriver:
39+
This class will be removed in 3.0 without replacement.
40+
Copyright (c) Doctrine Project
41+
From https://github.com/doctrine/orm/blob/40fbbf4429b0d66517244051237a2bd0616a7a13/src/Mapping/Driver/AnnotationDriver.php
42+
'''
43+
identifier: new.deprecatedClass
2444
count: 1
25-
path: src/Type/Doctrine/Descriptors/SmallFloatType.php
45+
path: tests/DoctrineIntegration/ORM/entity-manager.php
2646

2747
-
28-
message: '#^Class Doctrine\\DBAL\\Types\\EnumType not found\.$#'
29-
identifier: class.notFound
48+
rawMessage: '''
49+
Call to method __construct() of deprecated class Doctrine\ORM\Mapping\Driver\AnnotationDriver:
50+
This class will be removed in 3.0 without replacement.
51+
Copyright (c) Doctrine Project
52+
From https://github.com/doctrine/orm/blob/40fbbf4429b0d66517244051237a2bd0616a7a13/src/Mapping/Driver/AnnotationDriver.php
53+
'''
54+
identifier: method.deprecatedClass
3055
count: 1
31-
path: src/Type/Doctrine/Query/QueryResultTypeWalker.php
56+
path: tests/Platform/QueryResultTypeWalkerFetchTypeMatrixTest.php
3257

3358
-
3459
rawMessage: '''
35-
Access to constant on deprecated class Doctrine\ORM\Mapping\Driver\AnnotationDriver:
60+
Instantiation of deprecated class Doctrine\ORM\Mapping\Driver\AnnotationDriver:
3661
This class will be removed in 3.0 without replacement.
3762
Copyright (c) Doctrine Project
3863
From https://github.com/doctrine/orm/blob/40fbbf4429b0d66517244051237a2bd0616a7a13/src/Mapping/Driver/AnnotationDriver.php
3964
'''
40-
identifier: classConstant.deprecatedClass
65+
identifier: new.deprecatedClass
4166
count: 1
42-
path: src/Doctrine/Mapping/ClassMetadataFactory.php
67+
path: tests/Platform/QueryResultTypeWalkerFetchTypeMatrixTest.php
4368

4469
-
4570
rawMessage: '''
@@ -50,7 +75,7 @@ parameters:
5075
'''
5176
identifier: method.deprecatedClass
5277
count: 1
53-
path: src/Doctrine/Mapping/ClassMetadataFactory.php
78+
path: tests/Rules/DeadCode/entity-manager.php
5479

5580
-
5681
rawMessage: '''
@@ -61,28 +86,94 @@ parameters:
6186
'''
6287
identifier: new.deprecatedClass
6388
count: 1
64-
path: src/Doctrine/Mapping/ClassMetadataFactory.php
89+
path: tests/Rules/DeadCode/entity-manager.php
6590

6691
-
67-
rawMessage: 'Call to an undefined static method Doctrine\DBAL\Types\ConversionException::conversionFailed().'
68-
identifier: staticMethod.notFound
69-
count: 2
70-
path: tests/Rules/Doctrine/ORM/FakeTestingSymfonyUlidType.php
92+
rawMessage: 'Parameter #2 $type of static method Doctrine\DBAL\Types\Type::addType() expects class-string<Doctrine\DBAL\Types\Type>|Doctrine\DBAL\Types\Type, string given.'
93+
identifier: argument.type
94+
count: 1
95+
path: tests/Rules/Doctrine/ORM/EntityColumnRuleTest.php
7196

7297
-
73-
rawMessage: 'Call to an undefined static method Doctrine\DBAL\Types\ConversionException::conversionFailedInvalidType().'
74-
identifier: staticMethod.notFound
75-
count: 2
98+
rawMessage: 'Method PHPStan\Rules\Doctrine\ORM\FakeTestingRamseyUuidType::requiresSQLCommentHint() never returns false so the return type can be changed to true.'
99+
identifier: return.tooWideBool
100+
count: 1
101+
path: tests/Rules/Doctrine/ORM/FakeTestingRamseyUuidType.php
102+
103+
-
104+
rawMessage: 'Method PHPStan\Rules\Doctrine\ORM\FakeTestingSymfonyUlidType::requiresSQLCommentHint() never returns false so the return type can be changed to true.'
105+
identifier: return.tooWideBool
106+
count: 1
76107
path: tests/Rules/Doctrine/ORM/FakeTestingSymfonyUlidType.php
77108

78109
-
79-
rawMessage: 'Call to an undefined static method Doctrine\DBAL\Types\ConversionException::conversionFailed().'
80-
identifier: staticMethod.notFound
81-
count: 2
110+
rawMessage: 'Method PHPStan\Rules\Doctrine\ORM\FakeTestingSymfonyUuidType::requiresSQLCommentHint() never returns false so the return type can be changed to true.'
111+
identifier: return.tooWideBool
112+
count: 1
82113
path: tests/Rules/Doctrine/ORM/FakeTestingSymfonyUuidType.php
83114

84115
-
85-
rawMessage: 'Call to an undefined static method Doctrine\DBAL\Types\ConversionException::conversionFailedInvalidType().'
86-
identifier: staticMethod.notFound
87-
count: 2
88-
path: tests/Rules/Doctrine/ORM/FakeTestingSymfonyUuidType.php
116+
rawMessage: '''
117+
Call to method __construct() of deprecated class Doctrine\ORM\Mapping\Driver\AnnotationDriver:
118+
This class will be removed in 3.0 without replacement.
119+
Copyright (c) Doctrine Project
120+
From https://github.com/doctrine/orm/blob/40fbbf4429b0d66517244051237a2bd0616a7a13/src/Mapping/Driver/AnnotationDriver.php
121+
'''
122+
identifier: method.deprecatedClass
123+
count: 1
124+
path: tests/Rules/Properties/entity-manager.php
125+
126+
-
127+
rawMessage: '''
128+
Instantiation of deprecated class Doctrine\ORM\Mapping\Driver\AnnotationDriver:
129+
This class will be removed in 3.0 without replacement.
130+
Copyright (c) Doctrine Project
131+
From https://github.com/doctrine/orm/blob/40fbbf4429b0d66517244051237a2bd0616a7a13/src/Mapping/Driver/AnnotationDriver.php
132+
'''
133+
identifier: new.deprecatedClass
134+
count: 1
135+
path: tests/Rules/Properties/entity-manager.php
136+
137+
-
138+
rawMessage: '''
139+
Call to method __construct() of deprecated class Doctrine\ORM\Mapping\Driver\AnnotationDriver:
140+
This class will be removed in 3.0 without replacement.
141+
Copyright (c) Doctrine Project
142+
From https://github.com/doctrine/orm/blob/40fbbf4429b0d66517244051237a2bd0616a7a13/src/Mapping/Driver/AnnotationDriver.php
143+
'''
144+
identifier: method.deprecatedClass
145+
count: 1
146+
path: tests/Type/Doctrine/DBAL/mysqli.php
147+
148+
-
149+
rawMessage: '''
150+
Instantiation of deprecated class Doctrine\ORM\Mapping\Driver\AnnotationDriver:
151+
This class will be removed in 3.0 without replacement.
152+
Copyright (c) Doctrine Project
153+
From https://github.com/doctrine/orm/blob/40fbbf4429b0d66517244051237a2bd0616a7a13/src/Mapping/Driver/AnnotationDriver.php
154+
'''
155+
identifier: new.deprecatedClass
156+
count: 1
157+
path: tests/Type/Doctrine/DBAL/mysqli.php
158+
159+
-
160+
rawMessage: '''
161+
Call to method __construct() of deprecated class Doctrine\ORM\Mapping\Driver\AnnotationDriver:
162+
This class will be removed in 3.0 without replacement.
163+
Copyright (c) Doctrine Project
164+
From https://github.com/doctrine/orm/blob/40fbbf4429b0d66517244051237a2bd0616a7a13/src/Mapping/Driver/AnnotationDriver.php
165+
'''
166+
identifier: method.deprecatedClass
167+
count: 1
168+
path: tests/Type/Doctrine/DBAL/pdo.php
169+
170+
-
171+
rawMessage: '''
172+
Instantiation of deprecated class Doctrine\ORM\Mapping\Driver\AnnotationDriver:
173+
This class will be removed in 3.0 without replacement.
174+
Copyright (c) Doctrine Project
175+
From https://github.com/doctrine/orm/blob/40fbbf4429b0d66517244051237a2bd0616a7a13/src/Mapping/Driver/AnnotationDriver.php
176+
'''
177+
identifier: new.deprecatedClass
178+
count: 1
179+
path: tests/Type/Doctrine/DBAL/pdo.php

0 commit comments

Comments
 (0)