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:
parent
33aab6cc40
commit
6e8bd2b207
@ -1058,7 +1058,8 @@ class UnusedCodeTest extends TestCase
|
||||
],
|
||||
'notUnevaluatedFunction' => [
|
||||
'<?php
|
||||
function neverReturns(): never{
|
||||
/** @return never */
|
||||
function neverReturns(){
|
||||
die();
|
||||
}
|
||||
unrelated();
|
||||
|
Loading…
Reference in New Issue
Block a user