mirror of
https://github.com/rectorphp/rector.git
synced 2025-04-21 07:52:01 +02:00
Check if $node->stmts has a null value
This commit is contained in:
parent
a1754b38ce
commit
13ed8437b9
@ -86,7 +86,7 @@ PHP
|
||||
return null;
|
||||
}
|
||||
|
||||
if (count((array) $node->stmts) !== 1) {
|
||||
if ($node->stmts === null || count((array) $node->stmts) !== 1) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user