Commit 0b45862
fix: Fix return type bugs found by tightening Psalm suppressors
Removed InvalidArgument, InvalidReturnType, InvalidReturnStatement,
InvalidCast, InvalidMethodCall suppressors from psalm.xml — exposing 5
real bugs that were previously hidden:
- ArchiMateExportService::createSectionFolder(): return type was
SimpleXMLElement but function can return null; fixed to ?SimpleXMLElement
- ArchiMateExportService::extractModelMetadata(): return can be
ArrayAccess; cast to (array) to satisfy array return type
- ContactPersonHandler::assignUserGroups(): docblock said @return void
but function signature and body return string; fixed docblock
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent b7a1084 commit 0b45862
3 files changed
Lines changed: 5 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
893 | 893 | | |
894 | 894 | | |
895 | 895 | | |
896 | | - | |
| 896 | + | |
897 | 897 | | |
898 | 898 | | |
899 | 899 | | |
| |||
1515 | 1515 | | |
1516 | 1516 | | |
1517 | 1517 | | |
1518 | | - | |
| 1518 | + | |
1519 | 1519 | | |
1520 | 1520 | | |
1521 | 1521 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
614 | 614 | | |
615 | 615 | | |
616 | 616 | | |
617 | | - | |
| 617 | + | |
618 | 618 | | |
619 | 619 | | |
620 | 620 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
| 129 | + | |
133 | 130 | | |
134 | 131 | | |
135 | 132 | | |
136 | | - | |
137 | 133 | | |
138 | 134 | | |
139 | 135 | | |
| 136 | + | |
140 | 137 | | |
141 | 138 | | |
142 | 139 | | |
0 commit comments