mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-25 04:03:55 +01:00
fix PHP4ConstructorRector
This commit is contained in:
parent
5685b17a78
commit
8e345870cd
@ -126,11 +126,15 @@ CODE_SAMPLE
|
||||
|
||||
/** @var Expression $methodStmt */
|
||||
foreach ($classMethodNode->stmts as $methodStmt) {
|
||||
if (! $methodStmt->expr instanceof StaticCall) {
|
||||
if ($methodStmt instanceof Expression) {
|
||||
$methodStmt = $methodStmt->expr;
|
||||
}
|
||||
|
||||
if (! $methodStmt instanceof StaticCall) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$this->processParentPhp4ConstructCall($methodStmt->expr);
|
||||
$this->processParentPhp4ConstructCall($methodStmt);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user