Commit 22c0de0
committed
Fix static analysis and keep DBAL < 4.5 compatibility for the type pass
- Wrap the constructor-bearing test fixture in a version guard, since
Doctrine\DBAL\Types\Type::__construct() is final before DBAL 4.5
- Type assertTypeRegistered()'s class-string argument and narrow
getRegistry()'s return value
- Make the MoneyEntity fixture properties public
- Ignore the DBAL >= 4.5 only getTypeProvider()/TypeProvider references,
tuned to the stable DBAL that CI analyses1 parent 3d0d283 commit 22c0de0
4 files changed
Lines changed: 22 additions & 43 deletions
File tree
- src/DependencyInjection/Compiler
- tests
- DataCollector
- DependencyInjection
- Compiler
- Fixtures
Lines changed: 0 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | 147 | | |
159 | 148 | | |
160 | 149 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
| |||
Lines changed: 19 additions & 30 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
281 | 281 | | |
282 | 282 | | |
283 | 283 | | |
| 284 | + | |
284 | 285 | | |
285 | 286 | | |
286 | 287 | | |
| |||
332 | 333 | | |
333 | 334 | | |
334 | 335 | | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | | - | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | 336 | | |
357 | 337 | | |
358 | 338 | | |
| |||
420 | 400 | | |
421 | 401 | | |
422 | 402 | | |
| 403 | + | |
423 | 404 | | |
424 | 405 | | |
425 | 406 | | |
| |||
456 | 437 | | |
457 | 438 | | |
458 | 439 | | |
459 | | - | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
460 | 444 | | |
461 | 445 | | |
462 | 446 | | |
| |||
513 | 497 | | |
514 | 498 | | |
515 | 499 | | |
516 | | - | |
517 | | - | |
518 | | - | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
519 | 505 | | |
520 | | - | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
521 | 509 | | |
522 | | - | |
523 | | - | |
524 | | - | |
525 | | - | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
526 | 515 | | |
527 | 516 | | |
528 | 517 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
0 commit comments