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 @@ -678,7 +678,7 @@ private function createMethod(
678678 }
679679
680680 if ($ this ->signatureMapProvider ->hasMethodMetadata ($ declaringClassName , $ methodReflection ->getName ())) {
681- $ hasSideEffects = TrinaryLogic::createFromBoolean ($ this ->signatureMapProvider ->getMethodMetadata ($ declaringClassName , $ methodReflection ->getName ())['hasSideEffects ' ] ?? false );
681+ $ hasSideEffects = TrinaryLogic::createFromBoolean ($ this ->signatureMapProvider ->getMethodMetadata ($ declaringClassName , $ methodReflection ->getName ())['hasSideEffects ' ] ?? true );
682682 } else {
683683 $ hasSideEffects = TrinaryLogic::createMaybe ();
684684 }
@@ -842,7 +842,7 @@ public function createUserlandMethodReflection(ClassReflection $fileDeclaringCla
842842 $ isPure = null ;
843843 foreach ($ actualDeclaringClass ->getAncestors () as $ className => $ ancestor ) {
844844 if ($ this ->signatureMapProvider ->hasMethodMetadata ($ className , $ methodReflection ->getName ())) {
845- $ hasSideEffects = $ this ->signatureMapProvider ->getMethodMetadata ($ className , $ methodReflection ->getName ())['hasSideEffects ' ];
845+ $ hasSideEffects = $ this ->signatureMapProvider ->getMethodMetadata ($ className , $ methodReflection ->getName ())['hasSideEffects ' ] ?? true ;
846846 $ isPure = !$ hasSideEffects ;
847847
848848 break ;
You can’t perform that action at this time.
0 commit comments