Skip to content

Commit f090339

Browse files
committed
Update NodeScopeResolver.php
1 parent 8107134 commit f090339

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Analyser/NodeScopeResolver.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3031,7 +3031,10 @@ static function (): void {
30313031
$methodReflection !== null
30323032
&& (
30333033
$methodReflection->hasSideEffects()->yes()
3034-
|| $methodReflection->getName() === '__construct'
3034+
|| (
3035+
!$methodReflection->isStatic()
3036+
&& $methodReflection->getName() === '__construct'
3037+
)
30353038
)
30363039
&& $scopeFunction instanceof MethodReflection
30373040
&& $scope->isInClass()

0 commit comments

Comments
 (0)