You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/Rule/data/ForbidNotNormalizedTypeRule/code.php
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -160,4 +160,13 @@ public function testNativeUnions(
160
160
{
161
161
}
162
162
163
+
publicfunctiontestCatch()
164
+
{
165
+
try {
166
+
167
+
} catch (InterfaceImplementor|MyInterface$k) { // error: Found non-normalized type \ForbidNotNormalizedTypeRule\InterfaceImplementor|\ForbidNotNormalizedTypeRule\MyInterface for catch statement: \ForbidNotNormalizedTypeRule\InterfaceImplementor is a subtype of \ForbidNotNormalizedTypeRule\MyInterface.
0 commit comments