Commit 73172cf
Fix InspectorTypeExtension compatibility with PHPStan 2.1.47 mixed~null type (#976)
PHPStan 2.1.47 now infers mixed~null instead of mixed in certain scopes.
Update the assertAll check to use instanceof MixedType rather than equals()
so mixed~null inputs are also narrowed to iterable.
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 0d050e1 commit 73172cf
File tree
2 files changed
+2
-2
lines changed- src/Type
- tests/src/Type/data
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
| 114 | + | |
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
0 commit comments