Skip to content

Commit 993bfbd

Browse files
committed
test native and non-native
1 parent 40f9920 commit 993bfbd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/PHPStan/Analyser/nsrt/bug-to-string-type.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace BugToStringType;
44

5+
use function PHPStan\Testing\assertNativeType;
56
use function PHPStan\Testing\assertType;
67

78
class ParentClassWithToStringMixedReturn
@@ -30,5 +31,6 @@ public function __toString()
3031

3132
function test(Consumer $test): void
3233
{
33-
assertType('mixed', $test->__toString());
34+
assertType('string', $test->__toString());
35+
assertNativeType('mixed', $test->__toString());
3436
}

0 commit comments

Comments
 (0)