Closed momala454 closed 6 months ago
Describe the bug When we use a null safe operator, intelephense doesn't report that the type can be null
To Reproduce
class Hello { public int $world; } function world(?Hello $hello): void { $abc = $hello?->world; var_dump($abc); } world(null);
$abc is null, not an int
$abc
Expected behavior The type should be null|int
null|int
Screenshots
Platform and version 1.10.2
Describe the bug When we use a null safe operator, intelephense doesn't report that the type can be null
To Reproduce
$abc
is null, not an intExpected behavior The type should be
null|int
Screenshots
Platform and version 1.10.2