Commit 64f3fe3
Remove redundant isSuperTypeOf check after TypeCombinator::intersect()
The result of TypeCombinator::intersect($writableType, $nonFinalObjectType)
is by definition a subtype of $nonFinalObjectType, so the isSuperTypeOf
check is always true when the result is not NeverType.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent cba17ba commit 64f3fe3
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
422 | 422 | | |
423 | 423 | | |
424 | 424 | | |
425 | | - | |
| 425 | + | |
426 | 426 | | |
427 | 427 | | |
428 | 428 | | |
| |||
0 commit comments