@@ -667,13 +667,13 @@ private function assertObject(mixed $object): object
667667 /** @return int-mask-of<ReflectionPropertyAdapter::IS_*> */
668668 private function computeModifiers (PropertyNode $ node ): int
669669 {
670- $ modifiers = $ node ->isReadonly () ? CoreReflectionProperty ::IS_READONLY : 0 ;
671- $ modifiers += $ node ->isStatic () ? CoreReflectionProperty ::IS_STATIC : 0 ;
672- $ modifiers += $ node ->isPrivate () ? CoreReflectionProperty ::IS_PRIVATE : 0 ;
670+ $ modifiers = $ node ->isReadonly () ? ReflectionPropertyAdapter ::IS_READONLY : 0 ;
671+ $ modifiers += $ node ->isStatic () ? ReflectionPropertyAdapter ::IS_STATIC : 0 ;
672+ $ modifiers += $ node ->isPrivate () ? ReflectionPropertyAdapter ::IS_PRIVATE : 0 ;
673673 $ modifiers += ! $ node ->isPrivate () && $ node ->isPrivateSet () ? ReflectionPropertyAdapter::IS_PRIVATE_SET_COMPATIBILITY : 0 ;
674- $ modifiers += $ node ->isProtected () ? CoreReflectionProperty ::IS_PROTECTED : 0 ;
674+ $ modifiers += $ node ->isProtected () ? ReflectionPropertyAdapter ::IS_PROTECTED : 0 ;
675675 $ modifiers += ! $ node ->isProtected () && $ node ->isProtectedSet () ? ReflectionPropertyAdapter::IS_PROTECTED_SET_COMPATIBILITY : 0 ;
676- $ modifiers += $ node ->isPublic () ? CoreReflectionProperty ::IS_PUBLIC : 0 ;
676+ $ modifiers += $ node ->isPublic () ? ReflectionPropertyAdapter ::IS_PUBLIC : 0 ;
677677 $ modifiers += $ node ->isFinal () ? ReflectionPropertyAdapter::IS_FINAL_COMPATIBILITY : 0 ;
678678 $ modifiers += $ node ->isAbstract () ? ReflectionPropertyAdapter::IS_ABSTRACT_COMPATIBILITY : 0 ;
679679
@@ -688,11 +688,12 @@ private function computeModifiers(PropertyNode $node): int
688688 ! ($ modifiers & (ReflectionPropertyAdapter::IS_PROTECTED_SET_COMPATIBILITY | ReflectionPropertyAdapter::IS_PRIVATE_SET_COMPATIBILITY ))
689689 && ! $ node ->isPublicSet ()
690690 && $ node ->isPublic ()
691- && ($ modifiers & CoreReflectionProperty ::IS_READONLY )
691+ && ($ modifiers & ReflectionPropertyAdapter ::IS_READONLY )
692692 ) {
693693 $ modifiers += ReflectionPropertyAdapter::IS_PROTECTED_SET_COMPATIBILITY ;
694694 }
695695
696+ /** @phpstan-ignore return.type */
696697 return $ modifiers ;
697698 }
698699
0 commit comments