phpspec / prophecy

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

Fix generation of enum default values with PHP 8.1 #618

Closed jdreesen closed 3 months ago

jdreesen commented 3 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 3 months ago

CI failure is unrelated.

jdreesen commented 1 month ago

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