diff --git a/rules/Php70/Rector/FuncCall/EregToPregMatchRector.php b/rules/Php70/Rector/FuncCall/EregToPregMatchRector.php index 3281d8e50c7..c0953f72bfc 100644 --- a/rules/Php70/Rector/FuncCall/EregToPregMatchRector.php +++ b/rules/Php70/Rector/FuncCall/EregToPregMatchRector.php @@ -101,7 +101,7 @@ private function shouldSkipFuncCall(FuncCall $funcCall): bool } if ($funcCall->isFirstClassCallable()) { - return null; + return true; } return ! isset($funcCall->getArgs()[0]);