We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 945fd2d commit b7477acCopy full SHA for b7477ac
tests/PHPStan/Analyser/nsrt/bug-12902.php
@@ -29,12 +29,20 @@ public function __construct()
29
self::$i = getInt();
30
assertType('int', self::$i);
31
assertNativeType('int', self::$i);
32
+
33
+ $this->impureCall();
34
35
+ assertType('float|int', self::$i);
36
+ assertNativeType('float|int', self::$i);
37
}
38
39
public function doFoo(): void {
40
assertType('float|int', self::$i);
41
assertNativeType('float|int', self::$i);
42
43
44
+ /** @phpstan-impure */
45
+ public function impureCall(): void {}
46
47
48
function getInt(): int {
0 commit comments