Skip to content

Commit 3dc3d3e

Browse files
committed
Update bug-12393b.php
1 parent c66bb4a commit 3dc3d3e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/PHPStan/Analyser/nsrt/bug-12393b.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public function getMixed()
144144

145145
}
146146

147-
class Foo
147+
class FooStringInt
148148
{
149149

150150
public int $foo;
@@ -195,6 +195,8 @@ public function doBar(): void
195195
{
196196
$this->foo = true;
197197
assertType('string', $this->foo);
198+
$this->foo = false;
199+
assertType('string', $this->foo);
198200
}
199201
}
200202

0 commit comments

Comments
 (0)