Open bless-rng opened 1 week ago
Hey @bless-rng, can you reproduce the issue on https://psalm.dev? These will be used as phpunit tests when implementing the feature or fixing this bug.
Hey @bless-rng, can you reproduce the issue on https://psalm.dev? These will be used as phpunit tests when implementing the feature or fixing this bug.
I found these snippets:
Also i found more cases. Combine try/catch with switch case
I found these snippets:
When i use
finally
where i setup variable as not nullable - psalm still null possible error<?php
function test(int $a, int $b): int { try { $c = (int)($a / $b); } catch(Throwable $t) { $c = null; } finally { $c = 1; } return $c; }