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(
678
678
}
679
679
680
680
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 );
682
682
} else {
683
683
$ hasSideEffects = TrinaryLogic::createMaybe ();
684
684
}
@@ -842,7 +842,7 @@ public function createUserlandMethodReflection(ClassReflection $fileDeclaringCla
842
842
$ isPure = null ;
843
843
foreach ($ actualDeclaringClass ->getAncestors () as $ className => $ ancestor ) {
844
844
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 ;
846
846
$ isPure = !$ hasSideEffects ;
847
847
848
848
break ;
You can’t perform that action at this time.
0 commit comments