Skip to content

Commit

Permalink
Updated Rector to commit 58c67ff2e2b51e9de9fd399cc4c7756ca8ad3ed9
Browse files Browse the repository at this point in the history
rectorphp/rector-src@58c67ff [DX] Make use of addParameter() (#4801)
  • Loading branch information
TomasVotruba committed Aug 16, 2023
1 parent 1f6016e commit 588afe6
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 18 deletions.
10 changes: 4 additions & 6 deletions packages/Config/RectorConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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<ConfigurableRectorInterface&RectorInterface> $rectorClass
Expand Down
4 changes: 2 additions & 2 deletions src/Application/VersionResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
2 changes: 1 addition & 1 deletion vendor/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@

require_once __DIR__ . '/composer/autoload_real.php';

return ComposerAutoloaderInita98ab5d27d114088f46189c43c1c70f3::getLoader();
return ComposerAutoloaderInit9e0e5d1cea562da793c1c59e72f1ef06::getLoader();
10 changes: 5 additions & 5 deletions vendor/composer/autoload_real.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// autoload_real.php @generated by Composer

class ComposerAutoloaderInita98ab5d27d114088f46189c43c1c70f3
class ComposerAutoloaderInit9e0e5d1cea562da793c1c59e72f1ef06
{
private static $loader;

Expand All @@ -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;
Expand Down
8 changes: 4 additions & 4 deletions vendor/composer/autoload_static.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Composer\Autoload;

class ComposerStaticInita98ab5d27d114088f46189c43c1c70f3
class ComposerStaticInit9e0e5d1cea562da793c1c59e72f1ef06
{
public static $files = array (
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 588afe6

Please sign in to comment.