phpspec / prophecy

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

Do not allow null shorthand with standalone null type #598

Closed Jean85 closed 1 year ago

Jean85 commented 1 year ago

I got an issue with \SplFileObject::getChildren, which in PHP 8.2 has a tentative return type of null. The code generator was creating a return type written as ): ? {, creating a syntax error on the double. This fixes it.

Jean85 commented 1 year ago

CI build failure seems unrelated, probably due just to updated dependencies, especially PHPStan. I'll try to address them in a separate PR.