mirror of
https://github.com/rectorphp/rector.git
synced 2024-07-30 21:30:23 +00:00
add method rename
This commit is contained in:
parent
3ff47f7847
commit
e4ebea3ae8
@ -18,4 +18,8 @@ services:
|
||||
Rector\Rector\StaticCall\StaticCallToFunctionRector:
|
||||
'GuzzleHttp\Utils::setPath': 'GuzzleHttp\set_path'
|
||||
'GuzzleHttp\Pool::batch': 'GuzzleHttp\Pool\batch'
|
||||
|
||||
Rector\Guzzle\Rector\FuncCall\MessageAsArrayRector: ~
|
||||
Rector\Rector\MethodCall\MethodNameReplacerRector:
|
||||
GuzzleHttp\Message\MessageInterface:
|
||||
getHeaderLines: 'getHeaderAsArray'
|
||||
|
@ -41,7 +41,7 @@ final class ConfigurationFactory
|
||||
$config['description'],
|
||||
$config['code_before'],
|
||||
$config['code_after'],
|
||||
$this->resolveSource($config['source']),
|
||||
(array) $config['source'],
|
||||
$this->resolveLevelConfig($config['level'])
|
||||
);
|
||||
}
|
||||
@ -163,13 +163,4 @@ final class ConfigurationFactory
|
||||
$foundLevelConfigFileInfo = array_pop($fileInfos);
|
||||
return $foundLevelConfigFileInfo->getRealPath();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string|string[] $source
|
||||
* @return string[]
|
||||
*/
|
||||
private function resolveSource($source): array
|
||||
{
|
||||
return (array) $source;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user