mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-25 12:14:02 +01:00
fixup! Fix else in SimplifyForeachToArrayFilterRector
This commit is contained in:
parent
b9759f321d
commit
a82ea5af5f
@ -117,7 +117,7 @@ PHP
|
||||
/** @var If_ $ifNode */
|
||||
$ifNode = $foreachNode->stmts[0];
|
||||
|
||||
if ($ifNode->else) {
|
||||
if ($ifNode->else !== null) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user