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 = [];