mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-24 11:44:14 +01:00
add correct solution for empty() args
This commit is contained in:
parent
fa4a2adb1d
commit
553750e115
@ -119,8 +119,7 @@ final class SpecificMethodRector extends AbstractRector
|
||||
}
|
||||
|
||||
if ($funcCallOrEmptyNode instanceof Empty_) {
|
||||
// what should be here on the right part instead to fix this? :)
|
||||
$methodCallNode->args[0] = $funcCallOrEmptyNode->args[0];
|
||||
$methodCallNode->args[0] = $funcCallOrEmptyNode->expr;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user