Closed reioto closed 10 months ago
PHP Type declarations:
Changelog
8.2.0 | The types null and false can now be used standalone.
Probably false type too.
Already fixed in the dev version by https://github.com/phpspec/prophecy/pull/598
Oh nice! thanks!
TestCode is
Returned Error Message on PHP8.2:
Of course there are no syntax error in this package. But I found it in the generated code.
So,
SplFileObject::getChildren()
is always returned null. It's caused by a method that returns null In this case.I think. Part of what is causing this problem is here. https://github.com/phpspec/prophecy/blob/master/src/Prophecy/Doubler/Generator/ClassCodeGenerator.php#L89 The null is converted to "".