phpspec / prophecy

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

Fix generation of enum default values with PHP 8.1 #618

Closed jdreesen closed 7 months ago

jdreesen commented 8 months ago

Fixes #567

The problem is, that the generated default value is in the wrong namespace, because the leading \ is missing.

This seems only to be a problem in PHP 8.1, see: https://3v4l.org/3JPCM

jdreesen commented 7 months ago

CI failure is unrelated.

jdreesen commented 5 months ago

Would it be possible to get a release with this fix?