add correct solution for empty() args

This commit is contained in:
TomasVotruba 2017-12-19 15:02:19 +01:00
parent fa4a2adb1d
commit 553750e115

View File

@ -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;
}
}