phpspec / prophecy

Highly opinionated mocking framework for PHP 5.3+
MIT License
8.53k stars 241 forks source link

Handle the `never` return type #537

Closed ciaranmcnulty closed 2 years ago

ciaranmcnulty commented 3 years ago

We need to ensure we can correctly double classes with a never return

This may be as simple as our void handling, or could be more complex due to inheritance quirks

https://php.watch/versions/8.1/never-return-type