Skip to content

Commit 0b444c5

Browse files
phpstan-botclaude
andcommitted
Test that a string passed to a native mixed parameter does not fire UsedAsStringNode
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 81ed009 commit 0b444c5

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

‎tests/PHPStan/Node/data/used-as-string.php‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,3 +154,12 @@ function passPhpDocStringArgument(): void
154154
{
155155
takesPhpDocString('phpdoc string argument');
156156
}
157+
158+
function takesMixed(mixed $m): void
159+
{
160+
}
161+
162+
function passMixedArgument(): void
163+
{
164+
takesMixed('mixed argument');
165+
}

0 commit comments

Comments
 (0)