Updated Rector to commit 134f602ddf0ac3db65f903c113ca9218ed06b2ec

134f602ddf [Core] Early ->getPathname() on NonPhpFileProcessor::supports() (#257)
This commit is contained in:
Tomas Votruba 2021-06-20 13:45:35 +00:00
parent f9b27deac8
commit b1b5f6baaf
6 changed files with 21 additions and 20 deletions

View File

@ -16,11 +16,11 @@ final class VersionResolver
/**
* @var string
*/
public const PACKAGE_VERSION = 'd0e6a3bda67bfbf7f44b0fbec81ac592654726d6';
public const PACKAGE_VERSION = '134f602ddf0ac3db65f903c113ca9218ed06b2ec';
/**
* @var string
*/
public const RELEASE_DATE = '2021-06-20 18:50:38';
public const RELEASE_DATE = '2021-06-20 13:34:00';
public static function resolvePackageVersion() : string
{
$process = new \RectorPrefix20210620\Symfony\Component\Process\Process(['git', 'log', '--pretty="%H"', '-n1', 'HEAD'], __DIR__);

View File

@ -36,8 +36,9 @@ final class NonPhpFileProcessor implements \Rector\Core\Contract\Processor\FileP
{
$smartFileInfo = $file->getSmartFileInfo();
// bug in path extension
$pathname = $smartFileInfo->getPathname();
foreach ($this->getSupportedFileExtensions() as $supportedFileExtension) {
if (\substr_compare($smartFileInfo->getPathname(), '.' . $supportedFileExtension, -\strlen('.' . $supportedFileExtension)) === 0) {
if (\substr_compare($pathname, '.' . $supportedFileExtension, -\strlen('.' . $supportedFileExtension)) === 0) {
return \true;
}
}

2
vendor/autoload.php vendored
View File

@ -4,4 +4,4 @@
require_once __DIR__ . '/composer/autoload_real.php';
return ComposerAutoloaderInit89cfb7ae82a8dee409ae1d5957151652::getLoader();
return ComposerAutoloaderInitea0d55ec0149a4eea85579216cfafa24::getLoader();

View File

@ -2,7 +2,7 @@
// autoload_real.php @generated by Composer
class ComposerAutoloaderInit89cfb7ae82a8dee409ae1d5957151652
class ComposerAutoloaderInitea0d55ec0149a4eea85579216cfafa24
{
private static $loader;
@ -22,15 +22,15 @@ class ComposerAutoloaderInit89cfb7ae82a8dee409ae1d5957151652
return self::$loader;
}
spl_autoload_register(array('ComposerAutoloaderInit89cfb7ae82a8dee409ae1d5957151652', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInitea0d55ec0149a4eea85579216cfafa24', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
spl_autoload_unregister(array('ComposerAutoloaderInit89cfb7ae82a8dee409ae1d5957151652', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInitea0d55ec0149a4eea85579216cfafa24', 'loadClassLoader'));
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
if ($useStaticLoader) {
require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInit89cfb7ae82a8dee409ae1d5957151652::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInitea0d55ec0149a4eea85579216cfafa24::getInitializer($loader));
} else {
$classMap = require __DIR__ . '/autoload_classmap.php';
if ($classMap) {
@ -42,19 +42,19 @@ class ComposerAutoloaderInit89cfb7ae82a8dee409ae1d5957151652
$loader->register(true);
if ($useStaticLoader) {
$includeFiles = Composer\Autoload\ComposerStaticInit89cfb7ae82a8dee409ae1d5957151652::$files;
$includeFiles = Composer\Autoload\ComposerStaticInitea0d55ec0149a4eea85579216cfafa24::$files;
} else {
$includeFiles = require __DIR__ . '/autoload_files.php';
}
foreach ($includeFiles as $fileIdentifier => $file) {
composerRequire89cfb7ae82a8dee409ae1d5957151652($fileIdentifier, $file);
composerRequireea0d55ec0149a4eea85579216cfafa24($fileIdentifier, $file);
}
return $loader;
}
}
function composerRequire89cfb7ae82a8dee409ae1d5957151652($fileIdentifier, $file)
function composerRequireea0d55ec0149a4eea85579216cfafa24($fileIdentifier, $file)
{
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
require $file;

View File

@ -4,7 +4,7 @@
namespace Composer\Autoload;
class ComposerStaticInit89cfb7ae82a8dee409ae1d5957151652
class ComposerStaticInitea0d55ec0149a4eea85579216cfafa24
{
public static $files = array (
'a4a119a56e50fbb293281d9a48007e0e' => __DIR__ . '/..' . '/symfony/polyfill-php80/bootstrap.php',
@ -3871,9 +3871,9 @@ class ComposerStaticInit89cfb7ae82a8dee409ae1d5957151652
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInit89cfb7ae82a8dee409ae1d5957151652::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit89cfb7ae82a8dee409ae1d5957151652::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit89cfb7ae82a8dee409ae1d5957151652::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInitea0d55ec0149a4eea85579216cfafa24::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInitea0d55ec0149a4eea85579216cfafa24::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInitea0d55ec0149a4eea85579216cfafa24::$classMap;
}, null, ClassLoader::class);
}

View File

@ -21,8 +21,8 @@ if (!class_exists('SomeTestCase', false) && !interface_exists('SomeTestCase', fa
if (!class_exists('CheckoutEntityFactory', false) && !interface_exists('CheckoutEntityFactory', false) && !trait_exists('CheckoutEntityFactory', false)) {
spl_autoload_call('RectorPrefix20210620\CheckoutEntityFactory');
}
if (!class_exists('ComposerAutoloaderInit89cfb7ae82a8dee409ae1d5957151652', false) && !interface_exists('ComposerAutoloaderInit89cfb7ae82a8dee409ae1d5957151652', false) && !trait_exists('ComposerAutoloaderInit89cfb7ae82a8dee409ae1d5957151652', false)) {
spl_autoload_call('RectorPrefix20210620\ComposerAutoloaderInit89cfb7ae82a8dee409ae1d5957151652');
if (!class_exists('ComposerAutoloaderInitea0d55ec0149a4eea85579216cfafa24', false) && !interface_exists('ComposerAutoloaderInitea0d55ec0149a4eea85579216cfafa24', false) && !trait_exists('ComposerAutoloaderInitea0d55ec0149a4eea85579216cfafa24', false)) {
spl_autoload_call('RectorPrefix20210620\ComposerAutoloaderInitea0d55ec0149a4eea85579216cfafa24');
}
if (!class_exists('Doctrine\Inflector\Inflector', false) && !interface_exists('Doctrine\Inflector\Inflector', false) && !trait_exists('Doctrine\Inflector\Inflector', false)) {
spl_autoload_call('RectorPrefix20210620\Doctrine\Inflector\Inflector');
@ -3323,9 +3323,9 @@ if (!function_exists('print_node')) {
return \RectorPrefix20210620\print_node(...func_get_args());
}
}
if (!function_exists('composerRequire89cfb7ae82a8dee409ae1d5957151652')) {
function composerRequire89cfb7ae82a8dee409ae1d5957151652() {
return \RectorPrefix20210620\composerRequire89cfb7ae82a8dee409ae1d5957151652(...func_get_args());
if (!function_exists('composerRequireea0d55ec0149a4eea85579216cfafa24')) {
function composerRequireea0d55ec0149a4eea85579216cfafa24() {
return \RectorPrefix20210620\composerRequireea0d55ec0149a4eea85579216cfafa24(...func_get_args());
}
}
if (!function_exists('parseArgs')) {