Updated Rector to commit 58c67ff2e2b51e9de9fd399cc4c7756ca8ad3ed9

58c67ff2e2 [DX] Make use of addParameter() (#4801)
This commit is contained in:
Tomas Votruba 2023-08-16 21:55:34 +00:00
parent 1f6016e697
commit 588afe61b0
5 changed files with 16 additions and 18 deletions

View File

@ -116,9 +116,7 @@ final class RectorConfig extends Container
public function phpstanConfig(string $filePath) : void
{
Assert::fileExists($filePath);
$paths = SimpleParameterProvider::provideArrayParameter(Option::PHPSTAN_FOR_RECTOR_PATHS);
$paths[] = $filePath;
SimpleParameterProvider::setParameter(Option::PHPSTAN_FOR_RECTOR_PATHS, $paths);
SimpleParameterProvider::addParameter(Option::PHPSTAN_FOR_RECTOR_PATHS, [$filePath]);
}
/**
* Add PHPStan custom configs to load extensions and custom configuration to Rector.
@ -127,9 +125,9 @@ final class RectorConfig extends Container
*/
public function phpstanConfigs(array $filePaths) : void
{
foreach ($filePaths as $filePath) {
$this->phpstanConfig($filePath);
}
Assert::allString($filePaths);
Assert::allFileExists($filePaths);
SimpleParameterProvider::addParameter(Option::PHPSTAN_FOR_RECTOR_PATHS, $filePaths);
}
/**
* @param class-string<ConfigurableRectorInterface&RectorInterface> $rectorClass

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '41de61755c1f982ec554b6037a724abe708bfa27';
public const PACKAGE_VERSION = '58c67ff2e2b51e9de9fd399cc4c7756ca8ad3ed9';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-08-16 23:46:58';
public const RELEASE_DATE = '2023-08-16 23:52:35';
/**
* @var int
*/

2
vendor/autoload.php vendored
View File

@ -22,4 +22,4 @@ if (PHP_VERSION_ID < 50600) {
require_once __DIR__ . '/composer/autoload_real.php';
return ComposerAutoloaderInita98ab5d27d114088f46189c43c1c70f3::getLoader();
return ComposerAutoloaderInit9e0e5d1cea562da793c1c59e72f1ef06::getLoader();

View File

@ -2,7 +2,7 @@
// autoload_real.php @generated by Composer
class ComposerAutoloaderInita98ab5d27d114088f46189c43c1c70f3
class ComposerAutoloaderInit9e0e5d1cea562da793c1c59e72f1ef06
{
private static $loader;
@ -22,17 +22,17 @@ class ComposerAutoloaderInita98ab5d27d114088f46189c43c1c70f3
return self::$loader;
}
spl_autoload_register(array('ComposerAutoloaderInita98ab5d27d114088f46189c43c1c70f3', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInit9e0e5d1cea562da793c1c59e72f1ef06', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
spl_autoload_unregister(array('ComposerAutoloaderInita98ab5d27d114088f46189c43c1c70f3', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInit9e0e5d1cea562da793c1c59e72f1ef06', 'loadClassLoader'));
require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInita98ab5d27d114088f46189c43c1c70f3::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInit9e0e5d1cea562da793c1c59e72f1ef06::getInitializer($loader));
$loader->setClassMapAuthoritative(true);
$loader->register(true);
$filesToLoad = \Composer\Autoload\ComposerStaticInita98ab5d27d114088f46189c43c1c70f3::$files;
$filesToLoad = \Composer\Autoload\ComposerStaticInit9e0e5d1cea562da793c1c59e72f1ef06::$files;
$requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;

View File

@ -4,7 +4,7 @@
namespace Composer\Autoload;
class ComposerStaticInita98ab5d27d114088f46189c43c1c70f3
class ComposerStaticInit9e0e5d1cea562da793c1c59e72f1ef06
{
public static $files = array (
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
@ -2637,9 +2637,9 @@ class ComposerStaticInita98ab5d27d114088f46189c43c1c70f3
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInita98ab5d27d114088f46189c43c1c70f3::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInita98ab5d27d114088f46189c43c1c70f3::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInita98ab5d27d114088f46189c43c1c70f3::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInit9e0e5d1cea562da793c1c59e72f1ef06::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit9e0e5d1cea562da793c1c59e72f1ef06::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit9e0e5d1cea562da793c1c59e72f1ef06::$classMap;
}, null, ClassLoader::class);
}