File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -964,7 +964,7 @@ public function getEnumCases(): array
964964 $ initializerExprContext = InitializerExprContext::fromClassReflection ($ this );
965965 foreach ($ this ->reflection ->getCases () as $ case ) {
966966 $ valueType = null ;
967- if ($ case instanceof ReflectionEnumBackedCase && $ case ->hasValueExpression ()) {
967+ if ($ case instanceof ReflectionEnumBackedCase && $ case ->hasBackingValue ()) {
968968 $ valueType = $ this ->initializerExprTypeResolver ->getType ($ case ->getValueExpression (), $ initializerExprContext );
969969 }
970970 $ caseName = $ case ->getName ();
@@ -991,7 +991,7 @@ public function getEnumCase(string $name): EnumCaseReflection
991991
992992 $ case = $ this ->reflection ->getCase ($ name );
993993 $ valueType = null ;
994- if ($ case instanceof ReflectionEnumBackedCase && $ case ->hasValueExpression ()) {
994+ if ($ case instanceof ReflectionEnumBackedCase && $ case ->hasBackingValue ()) {
995995 $ valueType = $ this ->initializerExprTypeResolver ->getType ($ case ->getValueExpression (), InitializerExprContext::fromClassReflection ($ this ));
996996 }
997997
You can’t perform that action at this time.
0 commit comments