Repository navigation
Commit e1cdf19
committed
Fix phpstan errors in MduiChunk and GsspUserAttributesChunk
Prior to this change, toXML() in both classes called saveXML() on a
DOMDocument that phpstan correctly identifies as potentially null, and
saveXML() itself returns string|false which does not satisfy the string
return type. In MduiChunk::__construct(), documentElement is also typed
as DOMElement|null.
This change adds explicit null and false guards with RuntimeException,
adds missing RuntimeException imports, and regenerates the phpstan baseline
to remove stale suppressions that no longer match any reported errors.
Verified locally against symfony/framework-bundle 6.4.* and 7.4.*.1 parent d18b3d0 commit e1cdf19
3 files changed
Lines changed: 25 additions & 39 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
486 | 486 | | |
487 | 487 | | |
488 | 488 | | |
489 | | - | |
490 | | - | |
491 | | - | |
492 | | - | |
493 | | - | |
494 | | - | |
495 | 489 | | |
496 | 490 | | |
497 | 491 | | |
| |||
528 | 522 | | |
529 | 523 | | |
530 | 524 | | |
531 | | - | |
532 | | - | |
533 | | - | |
534 | | - | |
535 | | - | |
536 | | - | |
537 | 525 | | |
538 | 526 | | |
539 | 527 | | |
| |||
642 | 630 | | |
643 | 631 | | |
644 | 632 | | |
645 | | - | |
646 | | - | |
647 | | - | |
648 | | - | |
649 | | - | |
650 | | - | |
651 | | - | |
652 | | - | |
653 | | - | |
654 | | - | |
655 | | - | |
656 | | - | |
657 | 633 | | |
658 | 634 | | |
659 | 635 | | |
| |||
678 | 654 | | |
679 | 655 | | |
680 | 656 | | |
681 | | - | |
682 | | - | |
683 | | - | |
684 | | - | |
685 | | - | |
686 | | - | |
687 | 657 | | |
688 | 658 | | |
689 | 659 | | |
| |||
708 | 678 | | |
709 | 679 | | |
710 | 680 | | |
711 | | - | |
712 | | - | |
713 | | - | |
714 | | - | |
715 | | - | |
716 | | - | |
717 | 681 | | |
718 | 682 | | |
719 | 683 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
70 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
71 | 80 | | |
72 | 81 | | |
73 | 82 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
41 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
42 | 47 | | |
43 | 48 | | |
44 | 49 | | |
| |||
65 | 70 | | |
66 | 71 | | |
67 | 72 | | |
68 | | - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
69 | 82 | | |
70 | 83 | | |
71 | 84 | | |
| |||
0 commit comments