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 b08d974 commit 14f8aa3Copy full SHA for 14f8aa3
tests/PHPStan/Analyser/nsrt/remember-non-nullable-property.php
@@ -29,7 +29,7 @@ public function __construct()
29
}
30
31
public function doFoo(): void {
32
- assertType('mixed', $this->i);
+ assertType('int', $this->i);
33
assertNativeType('mixed', $this->i);
34
35
@@ -68,7 +68,7 @@ function getIntOrFloatOrNull(): null|int|float {
68
69
70
class NarrowsNativeUnion {
71
- private int|float $i;
+ private readonly int|float $i;
72
73
public function __construct()
74
{
0 commit comments