-
-
Notifications
You must be signed in to change notification settings - Fork 110
Open
Description
Describe the bug
In the following code it says $a is possibly undefined, but I also define it in the catch, so it is always defined. It seems to trigger only if I have "finally"
To Reproduce
$abc = 'abc';
try {
json_decode($abc, flags: JSON_THROW_ON_ERROR);
$a = 1;
} catch (\Throwable $e) {
$a = 2;
} finally {
echo 'bla';
}
echo $a;Expected behavior
No error
Screenshots
Platform and version
OS and Intelephense version.
Reactions are currently unavailable