# Bug report PHPStan: 1.9.3 I set the return enum type using `value-of` and expect the enum value to match the value set by `value-of` ### Code snippet that reproduces the problem https://phpstan.org/r/7b0f9b3e-79d5-47f9-a73d-9dd862cfa2ab ### Expected output ``` Dumped type: A::A|A::B Dumped type: 'A'|'B' ``` ### Did PHPStan help you today? Did it make you happy in any way? PHPStan helps us a lot!
Bug report
PHPStan: 1.9.3
I set the return enum type using
value-ofand expect the enum value to match the value set byvalue-ofCode snippet that reproduces the problem
https://phpstan.org/r/7b0f9b3e-79d5-47f9-a73d-9dd862cfa2ab
Expected output
Did PHPStan help you today? Did it make you happy in any way?
PHPStan helps us a lot!