Skip to content

Commit 14f8aa3

Browse files
committed
Update remember-non-nullable-property.php
1 parent b08d974 commit 14f8aa3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/PHPStan/Analyser/nsrt/remember-non-nullable-property.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function __construct()
2929
}
3030

3131
public function doFoo(): void {
32-
assertType('mixed', $this->i);
32+
assertType('int', $this->i);
3333
assertNativeType('mixed', $this->i);
3434
}
3535
}
@@ -68,7 +68,7 @@ function getIntOrFloatOrNull(): null|int|float {
6868
}
6969

7070
class NarrowsNativeUnion {
71-
private int|float $i;
71+
private readonly int|float $i;
7272

7373
public function __construct()
7474
{

0 commit comments

Comments
 (0)