diff --git a/packages/Config/RectorConfig.php b/packages/Config/RectorConfig.php index d1a36a4fd85e..903dec5f0597 100644 --- a/packages/Config/RectorConfig.php +++ b/packages/Config/RectorConfig.php @@ -116,9 +116,7 @@ public function importShortClasses(bool $importShortClasses = \true) : void 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 @@ public function phpstanConfig(string $filePath) : void */ 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 $rectorClass diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index dd3c67a7a1af..cd49becd5e32 100644 --- a/src/Application/VersionResolver.php +++ b/src/Application/VersionResolver.php @@ -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 */ diff --git a/vendor/autoload.php b/vendor/autoload.php index 6fee69bf4948..15a6af01f210 100644 --- a/vendor/autoload.php +++ b/vendor/autoload.php @@ -22,4 +22,4 @@ require_once __DIR__ . '/composer/autoload_real.php'; -return ComposerAutoloaderInita98ab5d27d114088f46189c43c1c70f3::getLoader(); +return ComposerAutoloaderInit9e0e5d1cea562da793c1c59e72f1ef06::getLoader(); diff --git a/vendor/composer/autoload_real.php b/vendor/composer/autoload_real.php index 835cc3e7cb7f..3cd9af96996c 100644 --- a/vendor/composer/autoload_real.php +++ b/vendor/composer/autoload_real.php @@ -2,7 +2,7 @@ // autoload_real.php @generated by Composer -class ComposerAutoloaderInita98ab5d27d114088f46189c43c1c70f3 +class ComposerAutoloaderInit9e0e5d1cea562da793c1c59e72f1ef06 { private static $loader; @@ -22,17 +22,17 @@ public static function getLoader() 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; diff --git a/vendor/composer/autoload_static.php b/vendor/composer/autoload_static.php index 0b60a952a663..3a78b70d450a 100644 --- a/vendor/composer/autoload_static.php +++ b/vendor/composer/autoload_static.php @@ -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); }