1--TEST-- 2ReflectionEnumBackedCase::getBackingValue() exception 3--FILE-- 4<?php 5enum Inm:int { 6 case Foo=y; 7} 8try { 9 var_dump((new ReflectionEnumBackedCase(Inm::class,'Foo'))->getBackingValue()); 10} catch (Error $e) { 11 echo $e->getMessage() . "\n"; 12} 13?> 14--EXPECT-- 15Undefined constant "y" 16