phpspec / prophecy

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

Support 'false' return type #505

Closed ciaranmcnulty closed 3 years ago

ciaranmcnulty commented 4 years ago

Since PHP8 a union return type can contain false e.g. int|false

We need to write some tests that check Prophecy doesn't break / do the wrong thing, then fix the behaviour in \Prophecy\Doubler\Generator\Node\ReturnTypeNode