1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-30 04:39:00 +01:00

allow declaring functions and classLikes after a never-returning call

This commit is contained in:
orklah 2021-11-05 18:18:34 +01:00
parent 33aab6cc40
commit 6e8bd2b207

View File

@ -1058,7 +1058,8 @@ class UnusedCodeTest extends TestCase
],
'notUnevaluatedFunction' => [
'<?php
function neverReturns(): never{
/** @return never */
function neverReturns(){
die();
}
unrelated();