Here, I would expect an UnevaluatedCode message, since the last return of this function will never be evaluated.
<?php
function noOp(): void {
return;
}
function doAThing(): bool {
try {
noOp();
} finally {
return true;
}
return false;
}
https://psalm.dev/r/d36dedcb6c
Here, I would expect an UnevaluatedCode message, since the last return of this function will never be evaluated.
https://psalm.dev/r/d36dedcb6c