Skip to content

Commit 74c6509

Browse files
committed
Update bug-14207.php
1 parent 5930af2 commit 74c6509

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tests/PHPStan/Analyser/data/bug-14207.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ public static function is_special( $tag_name ): bool {
3131
: "{$tag_name->namespace} {$tag_name->node_name}";
3232
}
3333

34+
assertType('non-falsy-string|uppercase-string', $tag_name);
35+
3436
$x = (
3537
'ADDRESS' === $tag_name ||
3638
'APPLET' === $tag_name ||
@@ -130,7 +132,7 @@ public static function is_special( $tag_name ): bool {
130132
'svg TITLE' === $tag_name
131133
);
132134

133-
assertType('non-falsy-string|uppercase-string', $tag_name);
135+
assertType('bool', $x);
134136

135137
return $x;
136138
}

0 commit comments

Comments
 (0)