mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-19 06:18:07 +01:00
Updated Rector to commit dc57cffad71a875b8ccd11be265260754c47d32e
dc57cffad7
[Skipper] Prevent unnecessary IO (#3664)
This commit is contained in:
parent
dbf153e6a3
commit
b211e37b4b
@ -8,10 +8,10 @@ final class RealpathMatcher
|
||||
public function match(string $matchingPath, string $filePath) : bool
|
||||
{
|
||||
$realPathMatchingPath = \realpath($matchingPath);
|
||||
$realpathFilePath = \realpath($filePath);
|
||||
if (!\is_string($realPathMatchingPath)) {
|
||||
return \false;
|
||||
}
|
||||
$realpathFilePath = \realpath($filePath);
|
||||
if (!\is_string($realpathFilePath)) {
|
||||
return \false;
|
||||
}
|
||||
|
@ -43,11 +43,11 @@ final class SkippedPathsResolver
|
||||
if (!\is_int($key)) {
|
||||
continue;
|
||||
}
|
||||
if (\file_exists($value)) {
|
||||
if (\strpos((string) $value, '*') !== \false) {
|
||||
$this->skippedPaths[] = $this->filePathHelper->normalizePathAndSchema($value);
|
||||
continue;
|
||||
}
|
||||
if (\strpos((string) $value, '*') !== \false) {
|
||||
if (\file_exists($value)) {
|
||||
$this->skippedPaths[] = $this->filePathHelper->normalizePathAndSchema($value);
|
||||
}
|
||||
}
|
||||
|
@ -19,12 +19,12 @@ final class VersionResolver
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = '54663e7124c3d9b138007c52a6f64e6393edb104';
|
||||
public const PACKAGE_VERSION = 'dc57cffad71a875b8ccd11be265260754c47d32e';
|
||||
/**
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2023-04-23 13:09:28';
|
||||
public const RELEASE_DATE = '2023-04-23 13:38:05';
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
|
2
vendor/autoload.php
vendored
2
vendor/autoload.php
vendored
@ -22,4 +22,4 @@ if (PHP_VERSION_ID < 50600) {
|
||||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInit942b241ac6555da66c83b94f601e600b::getLoader();
|
||||
return ComposerAutoloaderInit0b4c1b01280c1429588e347b0e1ae526::getLoader();
|
||||
|
10
vendor/composer/autoload_real.php
vendored
10
vendor/composer/autoload_real.php
vendored
@ -2,7 +2,7 @@
|
||||
|
||||
// autoload_real.php @generated by Composer
|
||||
|
||||
class ComposerAutoloaderInit942b241ac6555da66c83b94f601e600b
|
||||
class ComposerAutoloaderInit0b4c1b01280c1429588e347b0e1ae526
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
@ -22,17 +22,17 @@ class ComposerAutoloaderInit942b241ac6555da66c83b94f601e600b
|
||||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInit942b241ac6555da66c83b94f601e600b', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInit0b4c1b01280c1429588e347b0e1ae526', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit942b241ac6555da66c83b94f601e600b', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit0b4c1b01280c1429588e347b0e1ae526', 'loadClassLoader'));
|
||||
|
||||
require __DIR__ . '/autoload_static.php';
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit942b241ac6555da66c83b94f601e600b::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit0b4c1b01280c1429588e347b0e1ae526::getInitializer($loader));
|
||||
|
||||
$loader->setClassMapAuthoritative(true);
|
||||
$loader->register(true);
|
||||
|
||||
$filesToLoad = \Composer\Autoload\ComposerStaticInit942b241ac6555da66c83b94f601e600b::$files;
|
||||
$filesToLoad = \Composer\Autoload\ComposerStaticInit0b4c1b01280c1429588e347b0e1ae526::$files;
|
||||
$requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
|
||||
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
||||
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
|
||||
|
8
vendor/composer/autoload_static.php
vendored
8
vendor/composer/autoload_static.php
vendored
@ -4,7 +4,7 @@
|
||||
|
||||
namespace Composer\Autoload;
|
||||
|
||||
class ComposerStaticInit942b241ac6555da66c83b94f601e600b
|
||||
class ComposerStaticInit0b4c1b01280c1429588e347b0e1ae526
|
||||
{
|
||||
public static $files = array (
|
||||
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
|
||||
@ -3149,9 +3149,9 @@ class ComposerStaticInit942b241ac6555da66c83b94f601e600b
|
||||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit942b241ac6555da66c83b94f601e600b::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit942b241ac6555da66c83b94f601e600b::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit942b241ac6555da66c83b94f601e600b::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit0b4c1b01280c1429588e347b0e1ae526::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit0b4c1b01280c1429588e347b0e1ae526::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit0b4c1b01280c1429588e347b0e1ae526::$classMap;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user