Closed lexidor closed 2 years ago
The noreturn variants affect the typechecker in interesting ways. This is often surpricing and breaks tests using expect($it)->toThrow(). I have seen the following workarounds in the wild.
if ('always true') { self::markTestSkipped('skipping'); } (): void ==> { self::markTestSkipped('skipping'); }();
LGTM
The noreturn variants affect the typechecker in interesting ways. This is often surpricing and breaks tests using expect($it)->toThrow(). I have seen the following workarounds in the wild.