From e398014a972f937703593bc4f7b163d08b84ad12 Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Sat, 11 Aug 2018 11:45:24 +0200 Subject: [PATCH] add guzzle50 init set --- config/level/guzzle/guzzle50.yml | 5 +++++ ...CallRectorTest.php => FunctionToStaticCallRectorTest.php} | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 config/level/guzzle/guzzle50.yml rename tests/Rector/Function_/FunctionToStaticCallRector/{FunctionToMethodCallRectorTest.php => FunctionToStaticCallRectorTest.php} (85%) 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 @@