Skip to content

Commit

Permalink
Updated Rector to commit dc6e83c69ff9848d5bbfeedc9c596a042239a840
Browse files Browse the repository at this point in the history
rectorphp/rector-src@dc6e83c [e2e] Handle $rectorConfig->paths() with wilcards * config (#4765)
  • Loading branch information
TomasVotruba committed Aug 11, 2023
1 parent 7abf838 commit 9d88bf8
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 13 deletions.
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 = 'cf1d5b0a492598b893c3fe0ac1ec1d2fcd5018c6';
public const PACKAGE_VERSION = 'dc6e83c69ff9848d5bbfeedc9c596a042239a840';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-08-11 11:10:32';
public const RELEASE_DATE = '2023-08-11 11:16:33';
/**
* @var int
*/
Expand Down
10 changes: 9 additions & 1 deletion src/StaticReflection/DynamicSourceLocatorDecorator.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
namespace Rector\Core\StaticReflection;

use Rector\Core\FileSystem\FileAndDirectoryFilter;
use Rector\Core\FileSystem\FilesystemTweaker;
use Rector\Core\FileSystem\PhpFilesFinder;
use Rector\NodeTypeResolver\Reflection\BetterReflection\SourceLocatorProvider\DynamicSourceLocatorProvider;
/**
Expand All @@ -27,11 +28,17 @@ final class DynamicSourceLocatorDecorator
* @var \Rector\Core\FileSystem\FileAndDirectoryFilter
*/
private $fileAndDirectoryFilter;
public function __construct(DynamicSourceLocatorProvider $dynamicSourceLocatorProvider, PhpFilesFinder $phpFilesFinder, FileAndDirectoryFilter $fileAndDirectoryFilter)
/**
* @readonly
* @var \Rector\Core\FileSystem\FilesystemTweaker
*/
private $filesystemTweaker;
public function __construct(DynamicSourceLocatorProvider $dynamicSourceLocatorProvider, PhpFilesFinder $phpFilesFinder, FileAndDirectoryFilter $fileAndDirectoryFilter, FilesystemTweaker $filesystemTweaker)
{
$this->dynamicSourceLocatorProvider = $dynamicSourceLocatorProvider;
$this->phpFilesFinder = $phpFilesFinder;
$this->fileAndDirectoryFilter = $fileAndDirectoryFilter;
$this->filesystemTweaker = $filesystemTweaker;
}
/**
* @param string[] $paths
Expand All @@ -41,6 +48,7 @@ public function addPaths(array $paths) : void
if ($paths === []) {
return;
}
$paths = $this->filesystemTweaker->resolveWithFnmatch($paths);
$files = $this->fileAndDirectoryFilter->filterFiles($paths);
$this->dynamicSourceLocatorProvider->addFiles($files);
$directories = $this->fileAndDirectoryFilter->filterDirectories($paths);
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 ComposerAutoloaderInit16be4751e7661197313674642b820328::getLoader();
return ComposerAutoloaderInit7e2a36abe81c5fcb5984b6057b1d2e16::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 ComposerAutoloaderInit16be4751e7661197313674642b820328
class ComposerAutoloaderInit7e2a36abe81c5fcb5984b6057b1d2e16
{
private static $loader;

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

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

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

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

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

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

0 comments on commit 9d88bf8

Please sign in to comment.