Closed marforon closed 6 years ago
Thanks for the report @marforon ! https://github.com/Elao/PhpEnums/pull/66 should fix it
Thanks for such a quick fix @ogizanagi ! It fixes the issue indeed :)
And released: https://github.com/Elao/PhpEnums/releases/tag/v1.5.2
We sometimes need to use custom public constants in our enums (e.g. for translations):
But when I want to dump the data, it will end up with this exception.
It points here: https://github.com/Elao/PhpEnums/blob/master/src/Bridge/Symfony/VarDumper/Caster/EnumCaster.php#L34