You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix for support on different Doctrine ORM versions (#414)
* Add conflict to doctrine/persistence below 1.4 and use correct persistence classes
* Resolve more issue with static analysis in doctrine implementations.
Add doctrine/orm as dev dependency to avoid baseline entries.
* Fix phpstan-baseline for php7.4
* Add backwards compatible class_alias for doctrine/persistence
* Update psalm baseline
Copy file name to clipboardExpand all lines: phpstan-baseline.neon
+8-138
Original file line number
Diff line number
Diff line change
@@ -66,19 +66,19 @@ parameters:
66
66
path:src/Faker/ORM/CakePHP/Populator.php
67
67
68
68
-
69
-
message:"#^Access to property \\$fieldMappings on an unknown class Doctrine\\\\Common\\\\Persistence\\\\Mapping\\\\ClassMetadata\\.$#"
69
+
message:"#^Access to an undefined property Doctrine\\\\Persistence\\\\Mapping\\\\ClassMetadata\\:\\:\\$fieldMappings\\.$#"
70
70
count:2
71
71
path:src/Faker/ORM/Doctrine/ColumnTypeGuesser.php
72
72
73
73
-
74
-
message:"#^Call to method getTypeOfField\\(\\) on an unknown class Doctrine\\\\Common\\\\Persistence\\\\Mapping\\\\ClassMetadata\\.$#"
74
+
message:"#^Access to an undefined property Doctrine\\\\Persistence\\\\Mapping\\\\ClassMetadata\\:\\:\\$fieldMappings\\.$#"
75
75
count:1
76
-
path:src/Faker/ORM/Doctrine/ColumnTypeGuesser.php
76
+
path:src/Faker/ORM/Doctrine/EntityPopulator.php
77
77
78
78
-
79
-
message:"#^Parameter \\$class of method Faker\\\\ORM\\\\Doctrine\\\\ColumnTypeGuesser\\:\\:guessFormat\\(\\) has invalid typehint type Doctrine\\\\Common\\\\Persistence\\\\Mapping\\\\ClassMetadata\\.$#"
80
-
count:1
81
-
path:src/Faker/ORM/Doctrine/ColumnTypeGuesser.php
79
+
message:"#^Access to an undefined property Doctrine\\\\Persistence\\\\Mapping\\\\ClassMetadata\\:\\:\\$reflFields\\.$#"
80
+
count:2
81
+
path:src/Faker/ORM/Doctrine/EntityPopulator.php
82
82
83
83
-
84
84
message:"#^Access to constant ONE on an unknown class Doctrine\\\\ODM\\\\MongoDB\\\\Mapping\\\\ClassMetadata\\.$#"
@@ -95,33 +95,18 @@ parameters:
95
95
count:1
96
96
path:src/Faker/ORM/Doctrine/EntityPopulator.php
97
97
98
-
-
99
-
message:"#^Access to property \\$associationMappings on an unknown class Doctrine\\\\Common\\\\Persistence\\\\Mapping\\\\ClassMetadata\\.$#"
100
-
count:1
101
-
path:src/Faker/ORM/Doctrine/EntityPopulator.php
102
-
103
98
-
104
99
message:"#^Access to property \\$associationMappings on an unknown class Doctrine\\\\ODM\\\\MongoDB\\\\Mapping\\\\ClassMetadata\\.$#"
105
100
count:1
106
101
path:src/Faker/ORM/Doctrine/EntityPopulator.php
107
102
108
103
-
109
-
message:"#^Access to property \\$fieldMappings on an unknown class Doctrine\\\\Common\\\\Persistence\\\\Mapping\\\\ClassMetadata\\.$#"
110
-
count:1
111
-
path:src/Faker/ORM/Doctrine/EntityPopulator.php
112
-
113
-
-
114
-
message:"#^Access to property \\$reflFields on an unknown class Doctrine\\\\Common\\\\Persistence\\\\Mapping\\\\ClassMetadata\\.$#"
115
-
count:2
116
-
path:src/Faker/ORM/Doctrine/EntityPopulator.php
117
-
118
-
-
119
-
message:"#^Call to method createQueryBuilder\\(\\) on an unknown class Doctrine\\\\Common\\\\Persistence\\\\ObjectRepository\\.$#"
104
+
message:"#^Call to an undefined method Doctrine\\\\Persistence\\\\Mapping\\\\ClassMetadata\\:\\:newInstance\\(\\)\\.$#"
120
105
count:1
121
106
path:src/Faker/ORM/Doctrine/EntityPopulator.php
122
107
123
108
-
124
-
message:"#^Call to method getAssociationMappings\\(\\) on an unknown class Doctrine\\\\Common\\\\Persistence\\\\Mapping\\\\ClassMetadata\\.$#"
109
+
message:"#^Call to an undefined method Doctrine\\\\Persistence\\\\ObjectRepository\\<object\\>\\:\\:createQueryBuilder\\(\\)\\.$#"
125
110
count:1
126
111
path:src/Faker/ORM/Doctrine/EntityPopulator.php
127
112
@@ -130,61 +115,6 @@ parameters:
130
115
count:1
131
116
path:src/Faker/ORM/Doctrine/EntityPopulator.php
132
117
133
-
-
134
-
message:"#^Call to method getAssociationNames\\(\\) on an unknown class Doctrine\\\\Common\\\\Persistence\\\\Mapping\\\\ClassMetadata\\.$#"
135
-
count:1
136
-
path:src/Faker/ORM/Doctrine/EntityPopulator.php
137
-
138
-
-
139
-
message:"#^Call to method getAssociationTargetClass\\(\\) on an unknown class Doctrine\\\\Common\\\\Persistence\\\\Mapping\\\\ClassMetadata\\.$#"
140
-
count:1
141
-
path:src/Faker/ORM/Doctrine/EntityPopulator.php
142
-
143
-
-
144
-
message:"#^Call to method getFieldNames\\(\\) on an unknown class Doctrine\\\\Common\\\\Persistence\\\\Mapping\\\\ClassMetadata\\.$#"
145
-
count:1
146
-
path:src/Faker/ORM/Doctrine/EntityPopulator.php
147
-
148
-
-
149
-
message:"#^Call to method getIdentifier\\(\\) on an unknown class Doctrine\\\\Common\\\\Persistence\\\\Mapping\\\\ClassMetadata\\.$#"
150
-
count:1
151
-
path:src/Faker/ORM/Doctrine/EntityPopulator.php
152
-
153
-
-
154
-
message:"#^Call to method getName\\(\\) on an unknown class Doctrine\\\\Common\\\\Persistence\\\\Mapping\\\\ClassMetadata\\.$#"
155
-
count:1
156
-
path:src/Faker/ORM/Doctrine/EntityPopulator.php
157
-
158
-
-
159
-
message:"#^Call to method getRepository\\(\\) on an unknown class Doctrine\\\\Common\\\\Persistence\\\\ObjectManager\\.$#"
160
-
count:1
161
-
path:src/Faker/ORM/Doctrine/EntityPopulator.php
162
-
163
-
-
164
-
message:"#^Call to method hasField\\(\\) on an unknown class Doctrine\\\\Common\\\\Persistence\\\\Mapping\\\\ClassMetadata\\.$#"
165
-
count:1
166
-
path:src/Faker/ORM/Doctrine/EntityPopulator.php
167
-
168
-
-
169
-
message:"#^Call to method isCollectionValuedAssociation\\(\\) on an unknown class Doctrine\\\\Common\\\\Persistence\\\\Mapping\\\\ClassMetadata\\.$#"
170
-
count:1
171
-
path:src/Faker/ORM/Doctrine/EntityPopulator.php
172
-
173
-
-
174
-
message:"#^Call to method isIdentifier\\(\\) on an unknown class Doctrine\\\\Common\\\\Persistence\\\\Mapping\\\\ClassMetadata\\.$#"
175
-
count:1
176
-
path:src/Faker/ORM/Doctrine/EntityPopulator.php
177
-
178
-
-
179
-
message:"#^Call to method newInstance\\(\\) on an unknown class Doctrine\\\\Common\\\\Persistence\\\\Mapping\\\\ClassMetadata\\.$#"
180
-
count:1
181
-
path:src/Faker/ORM/Doctrine/EntityPopulator.php
182
-
183
-
-
184
-
message:"#^Call to method persist\\(\\) on an unknown class Doctrine\\\\Common\\\\Persistence\\\\ObjectManager\\.$#"
185
-
count:1
186
-
path:src/Faker/ORM/Doctrine/EntityPopulator.php
187
-
188
118
-
189
119
message:"#^Class Doctrine\\\\ODM\\\\MongoDB\\\\Mapping\\\\ClassMetadata not found\\.$#"
190
120
count:1
@@ -195,66 +125,6 @@ parameters:
195
125
count:1
196
126
path:src/Faker/ORM/Doctrine/EntityPopulator.php
197
127
198
-
-
199
-
message:"#^Method Faker\\\\ORM\\\\Doctrine\\\\EntityPopulator\\:\\:generateId\\(\\) never returns null so it can be removed from the return typehint\\.$#"
200
-
count:1
201
-
path:src/Faker/ORM/Doctrine/EntityPopulator.php
202
-
203
-
-
204
-
message:"#^PHPDoc tag @var for variable \\$repository contains unknown class Doctrine\\\\Common\\\\Persistence\\\\ObjectRepository\\.$#"
205
-
count:1
206
-
path:src/Faker/ORM/Doctrine/EntityPopulator.php
207
-
208
-
-
209
-
message:"#^Parameter \\$class of method Faker\\\\ORM\\\\Doctrine\\\\EntityPopulator\\:\\:__construct\\(\\) has invalid typehint type Doctrine\\\\Common\\\\Persistence\\\\Mapping\\\\ClassMetadata\\.$#"
210
-
count:1
211
-
path:src/Faker/ORM/Doctrine/EntityPopulator.php
212
-
213
-
-
214
-
message:"#^Parameter \\$manager of method Faker\\\\ORM\\\\Doctrine\\\\EntityPopulator\\:\\:execute\\(\\) has invalid typehint type Doctrine\\\\Common\\\\Persistence\\\\ObjectManager\\.$#"
215
-
count:1
216
-
path:src/Faker/ORM/Doctrine/EntityPopulator.php
217
-
218
-
-
219
-
message:"#^Parameter \\$manager of method Faker\\\\ORM\\\\Doctrine\\\\EntityPopulator\\:\\:generateId\\(\\) has invalid typehint type Doctrine\\\\Common\\\\Persistence\\\\ObjectManager\\.$#"
220
-
count:1
221
-
path:src/Faker/ORM/Doctrine/EntityPopulator.php
222
-
223
-
-
224
-
message:"#^Property Faker\\\\ORM\\\\Doctrine\\\\EntityPopulator\\:\\:\\$class has unknown class Doctrine\\\\Common\\\\Persistence\\\\Mapping\\\\ClassMetadata as its type\\.$#"
225
-
count:1
226
-
path:src/Faker/ORM/Doctrine/EntityPopulator.php
227
-
228
-
-
229
-
message:"#^Call to method flush\\(\\) on an unknown class Doctrine\\\\Common\\\\Persistence\\\\ObjectManager\\.$#"
230
-
count:2
231
-
path:src/Faker/ORM/Doctrine/Populator.php
232
-
233
-
-
234
-
message:"#^Call to method flush\\(\\) on an unknown class Faker\\\\ORM\\\\Doctrine\\\\EntityManager\\.$#"
235
-
count:2
236
-
path:src/Faker/ORM/Doctrine/Populator.php
237
-
238
-
-
239
-
message:"#^Call to method getClassMetadata\\(\\) on an unknown class Doctrine\\\\Common\\\\Persistence\\\\ObjectManager\\.$#"
240
-
count:1
241
-
path:src/Faker/ORM/Doctrine/Populator.php
242
-
243
-
-
244
-
message:"#^Parameter \\$entityManager of method Faker\\\\ORM\\\\Doctrine\\\\Populator\\:\\:execute\\(\\) has invalid typehint type Faker\\\\ORM\\\\Doctrine\\\\EntityManager\\.$#"
245
-
count:1
246
-
path:src/Faker/ORM/Doctrine/Populator.php
247
-
248
-
-
249
-
message:"#^Parameter \\$manager of method Faker\\\\ORM\\\\Doctrine\\\\Populator\\:\\:__construct\\(\\) has invalid typehint type Doctrine\\\\Common\\\\Persistence\\\\ObjectManager\\.$#"
250
-
count:1
251
-
path:src/Faker/ORM/Doctrine/Populator.php
252
-
253
-
-
254
-
message:"#^Property Faker\\\\ORM\\\\Doctrine\\\\Populator\\:\\:\\$manager has unknown class Doctrine\\\\Common\\\\Persistence\\\\ObjectManager as its type\\.$#"
255
-
count:1
256
-
path:src/Faker/ORM/Doctrine/Populator.php
257
-
258
128
-
259
129
message:"#^Call to method create\\(\\) on an unknown class Mandango\\\\Mandango\\.$#"
0 commit comments