Skip to content

Commit

Permalink
Updated Rector to commit 0d9b38d62ebb6f9f1264240c384ca1918c0c45a2
Browse files Browse the repository at this point in the history
rectorphp/rector-src@0d9b38d DX: Validate paths in RectorConfig->paths() (#5065)
  • Loading branch information
TomasVotruba committed Sep 24, 2023
1 parent 0ea0221 commit 0891342
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 12 deletions.
6 changes: 6 additions & 0 deletions packages/Config/RectorConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ final class RectorConfig extends Container
public function paths(array $paths) : void
{
Assert::allString($paths);
foreach ($paths as $path) {
if (\strpos($path, '*') !== \false) {
continue;
}
Assert::fileExists($path);
}
SimpleParameterProvider::setParameter(Option::PATHS, $paths);
}
/**
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 = '061eea0c0aca9f6f15ad35c82d5a9cb5323f3919';
public const PACKAGE_VERSION = '0d9b38d62ebb6f9f1264240c384ca1918c0c45a2';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-09-24 00:25:34';
public const RELEASE_DATE = '2023-09-24 16:15:09';
/**
* @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 ComposerAutoloaderInitcec2eace612f5ddc88c25ad48e6cc841::getLoader();
return ComposerAutoloaderInit94297ff22bdbba4c577c2028cb2b7943::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 ComposerAutoloaderInitcec2eace612f5ddc88c25ad48e6cc841
class ComposerAutoloaderInit94297ff22bdbba4c577c2028cb2b7943
{
private static $loader;

Expand All @@ -22,17 +22,17 @@ public static function getLoader()
return self::$loader;
}

spl_autoload_register(array('ComposerAutoloaderInitcec2eace612f5ddc88c25ad48e6cc841', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInit94297ff22bdbba4c577c2028cb2b7943', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
spl_autoload_unregister(array('ComposerAutoloaderInitcec2eace612f5ddc88c25ad48e6cc841', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInit94297ff22bdbba4c577c2028cb2b7943', 'loadClassLoader'));

require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInitcec2eace612f5ddc88c25ad48e6cc841::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInit94297ff22bdbba4c577c2028cb2b7943::getInitializer($loader));

$loader->setClassMapAuthoritative(true);
$loader->register(true);

$filesToLoad = \Composer\Autoload\ComposerStaticInitcec2eace612f5ddc88c25ad48e6cc841::$files;
$filesToLoad = \Composer\Autoload\ComposerStaticInit94297ff22bdbba4c577c2028cb2b7943::$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 ComposerStaticInitcec2eace612f5ddc88c25ad48e6cc841
class ComposerStaticInit94297ff22bdbba4c577c2028cb2b7943
{
public static $files = array (
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
Expand Down Expand Up @@ -2601,9 +2601,9 @@ class ComposerStaticInitcec2eace612f5ddc88c25ad48e6cc841
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInitcec2eace612f5ddc88c25ad48e6cc841::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInitcec2eace612f5ddc88c25ad48e6cc841::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInitcec2eace612f5ddc88c25ad48e6cc841::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInit94297ff22bdbba4c577c2028cb2b7943::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit94297ff22bdbba4c577c2028cb2b7943::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit94297ff22bdbba4c577c2028cb2b7943::$classMap;

}, null, ClassLoader::class);
}
Expand Down

0 comments on commit 0891342

Please sign in to comment.