From 799991aa3d99b9008c2beae9215c5d8c3f3e4b76 Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Sat, 11 Aug 2018 12:24:13 +0200 Subject: [PATCH] update guzzle50 set --- config/level/guzzle/guzzle50.yml | 4 ++++ src/Rector/StaticCall/StaticCallToFunctionRector.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/config/level/guzzle/guzzle50.yml b/config/level/guzzle/guzzle50.yml index 0c31d4eea05..335b180d44f 100644 --- a/config/level/guzzle/guzzle50.yml +++ b/config/level/guzzle/guzzle50.yml @@ -3,3 +3,7 @@ services: $functionToMethodCall: 'GuzzleHttp\json_decode': ['GuzzleHttp\Utils', 'jsonDecode'] 'GuzzleHttp\get_path': ['GuzzleHttp\Utils': 'getPath'] + Rector\Rector\StaticCall\StaticCallToFunctionRector: + $staticCallToFunction: + 'GuzzleHttp\Utils::setPath': 'GuzzleHttp\set_path' + 'GuzzleHttp\Pool::batch': 'GuzzleHttp\Pool\batch' diff --git a/src/Rector/StaticCall/StaticCallToFunctionRector.php b/src/Rector/StaticCall/StaticCallToFunctionRector.php index a6a254f8174..8f830d34cb3 100644 --- a/src/Rector/StaticCall/StaticCallToFunctionRector.php +++ b/src/Rector/StaticCall/StaticCallToFunctionRector.php @@ -14,7 +14,7 @@ use Rector\RectorDefinition\RectorDefinition; final class StaticCallToFunctionRector extends AbstractRector { /** - * @var string[][] + * @var string[] */ private $staticCallToFunction = [];