diff --git a/config/level/guzzle/guzzle50.yml b/config/level/guzzle/guzzle50.yml new file mode 100644 index 00000000000..0c31d4eea05 --- /dev/null +++ b/config/level/guzzle/guzzle50.yml @@ -0,0 +1,5 @@ +services: + Rector\Rector\Function_\FunctionToMethodCallRector: + $functionToMethodCall: + 'GuzzleHttp\json_decode': ['GuzzleHttp\Utils', 'jsonDecode'] + 'GuzzleHttp\get_path': ['GuzzleHttp\Utils': 'getPath'] diff --git a/tests/Rector/Function_/FunctionToStaticCallRector/FunctionToMethodCallRectorTest.php b/tests/Rector/Function_/FunctionToStaticCallRector/FunctionToStaticCallRectorTest.php similarity index 85% rename from tests/Rector/Function_/FunctionToStaticCallRector/FunctionToMethodCallRectorTest.php rename to tests/Rector/Function_/FunctionToStaticCallRector/FunctionToStaticCallRectorTest.php index 882ebfa3f7d..8d592e3a4e9 100644 --- a/tests/Rector/Function_/FunctionToStaticCallRector/FunctionToMethodCallRectorTest.php +++ b/tests/Rector/Function_/FunctionToStaticCallRector/FunctionToStaticCallRectorTest.php @@ -1,6 +1,6 @@