mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-19 14:27:14 +01:00
Updated Rector to commit 64cea0afd63f580e0e990a0ca4d27f936133ff19
64cea0afd6
DX: Report more precise errors in (#97)
This commit is contained in:
parent
54671c2dc3
commit
6c31321135
@ -16,11 +16,11 @@ final class VersionResolver
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = '01a066062bf3ef8e88cbce8e68bb933a02f025c3';
|
||||
public const PACKAGE_VERSION = '64cea0afd63f580e0e990a0ca4d27f936133ff19';
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2021-06-14 23:01:17';
|
||||
public const RELEASE_DATE = '2021-06-15 01:08:04';
|
||||
public static function resolvePackageVersion() : string
|
||||
{
|
||||
$process = new \RectorPrefix20210614\Symfony\Component\Process\Process(['git', 'log', '--pretty="%H"', '-n1', 'HEAD'], __DIR__);
|
||||
|
@ -5,6 +5,7 @@ namespace Rector\Core\DependencyInjection\CompilerPass;
|
||||
|
||||
use Rector\Core\Contract\Rector\RectorInterface;
|
||||
use Rector\Core\Exception\ShouldNotHappenException;
|
||||
use Rector\Core\Rector\AbstractRector;
|
||||
use RectorPrefix20210614\Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
|
||||
use RectorPrefix20210614\Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||
final class VerifyRectorServiceExistsCompilerPass implements \RectorPrefix20210614\Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface
|
||||
@ -19,8 +20,11 @@ final class VerifyRectorServiceExistsCompilerPass implements \RectorPrefix202106
|
||||
if (\substr_compare($class, 'Rector', -\strlen('Rector')) !== 0) {
|
||||
continue;
|
||||
}
|
||||
if (!\class_exists($class)) {
|
||||
throw new \Rector\Core\Exception\ShouldNotHappenException(\sprintf('Rector rule "%s" not found, please verify that the class exists and is autoloadable.', $class));
|
||||
}
|
||||
if (!\is_a($class, \Rector\Core\Contract\Rector\RectorInterface::class, \true)) {
|
||||
throw new \Rector\Core\Exception\ShouldNotHappenException(\sprintf('Rector rule "%s" not found, please verify that the rule exists', $class));
|
||||
throw new \Rector\Core\Exception\ShouldNotHappenException(\sprintf('Rector rule "%s" should extend "%s" or implement "%s".', $class, \Rector\Core\Rector\AbstractRector::class, \Rector\Core\Contract\Rector\RectorInterface::class));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
2
vendor/autoload.php
vendored
2
vendor/autoload.php
vendored
@ -4,4 +4,4 @@
|
||||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInit7ca01c3532cfed17a5a881fa84c4b98c::getLoader();
|
||||
return ComposerAutoloaderInitc827e5c9b9f2fd25b7ad37f92b957de4::getLoader();
|
||||
|
14
vendor/composer/autoload_real.php
vendored
14
vendor/composer/autoload_real.php
vendored
@ -2,7 +2,7 @@
|
||||
|
||||
// autoload_real.php @generated by Composer
|
||||
|
||||
class ComposerAutoloaderInit7ca01c3532cfed17a5a881fa84c4b98c
|
||||
class ComposerAutoloaderInitc827e5c9b9f2fd25b7ad37f92b957de4
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
@ -22,15 +22,15 @@ class ComposerAutoloaderInit7ca01c3532cfed17a5a881fa84c4b98c
|
||||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInit7ca01c3532cfed17a5a881fa84c4b98c', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInitc827e5c9b9f2fd25b7ad37f92b957de4', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit7ca01c3532cfed17a5a881fa84c4b98c', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInitc827e5c9b9f2fd25b7ad37f92b957de4', '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\ComposerStaticInit7ca01c3532cfed17a5a881fa84c4b98c::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInitc827e5c9b9f2fd25b7ad37f92b957de4::getInitializer($loader));
|
||||
} else {
|
||||
$classMap = require __DIR__ . '/autoload_classmap.php';
|
||||
if ($classMap) {
|
||||
@ -42,19 +42,19 @@ class ComposerAutoloaderInit7ca01c3532cfed17a5a881fa84c4b98c
|
||||
$loader->register(true);
|
||||
|
||||
if ($useStaticLoader) {
|
||||
$includeFiles = Composer\Autoload\ComposerStaticInit7ca01c3532cfed17a5a881fa84c4b98c::$files;
|
||||
$includeFiles = Composer\Autoload\ComposerStaticInitc827e5c9b9f2fd25b7ad37f92b957de4::$files;
|
||||
} else {
|
||||
$includeFiles = require __DIR__ . '/autoload_files.php';
|
||||
}
|
||||
foreach ($includeFiles as $fileIdentifier => $file) {
|
||||
composerRequire7ca01c3532cfed17a5a881fa84c4b98c($fileIdentifier, $file);
|
||||
composerRequirec827e5c9b9f2fd25b7ad37f92b957de4($fileIdentifier, $file);
|
||||
}
|
||||
|
||||
return $loader;
|
||||
}
|
||||
}
|
||||
|
||||
function composerRequire7ca01c3532cfed17a5a881fa84c4b98c($fileIdentifier, $file)
|
||||
function composerRequirec827e5c9b9f2fd25b7ad37f92b957de4($fileIdentifier, $file)
|
||||
{
|
||||
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
||||
require $file;
|
||||
|
8
vendor/composer/autoload_static.php
vendored
8
vendor/composer/autoload_static.php
vendored
@ -4,7 +4,7 @@
|
||||
|
||||
namespace Composer\Autoload;
|
||||
|
||||
class ComposerStaticInit7ca01c3532cfed17a5a881fa84c4b98c
|
||||
class ComposerStaticInitc827e5c9b9f2fd25b7ad37f92b957de4
|
||||
{
|
||||
public static $files = array (
|
||||
'a4a119a56e50fbb293281d9a48007e0e' => __DIR__ . '/..' . '/symfony/polyfill-php80/bootstrap.php',
|
||||
@ -3864,9 +3864,9 @@ class ComposerStaticInit7ca01c3532cfed17a5a881fa84c4b98c
|
||||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit7ca01c3532cfed17a5a881fa84c4b98c::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit7ca01c3532cfed17a5a881fa84c4b98c::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit7ca01c3532cfed17a5a881fa84c4b98c::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInitc827e5c9b9f2fd25b7ad37f92b957de4::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInitc827e5c9b9f2fd25b7ad37f92b957de4::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInitc827e5c9b9f2fd25b7ad37f92b957de4::$classMap;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
|
10
vendor/scoper-autoload.php
vendored
10
vendor/scoper-autoload.php
vendored
@ -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('RectorPrefix20210614\CheckoutEntityFactory');
|
||||
}
|
||||
if (!class_exists('ComposerAutoloaderInit7ca01c3532cfed17a5a881fa84c4b98c', false) && !interface_exists('ComposerAutoloaderInit7ca01c3532cfed17a5a881fa84c4b98c', false) && !trait_exists('ComposerAutoloaderInit7ca01c3532cfed17a5a881fa84c4b98c', false)) {
|
||||
spl_autoload_call('RectorPrefix20210614\ComposerAutoloaderInit7ca01c3532cfed17a5a881fa84c4b98c');
|
||||
if (!class_exists('ComposerAutoloaderInitc827e5c9b9f2fd25b7ad37f92b957de4', false) && !interface_exists('ComposerAutoloaderInitc827e5c9b9f2fd25b7ad37f92b957de4', false) && !trait_exists('ComposerAutoloaderInitc827e5c9b9f2fd25b7ad37f92b957de4', false)) {
|
||||
spl_autoload_call('RectorPrefix20210614\ComposerAutoloaderInitc827e5c9b9f2fd25b7ad37f92b957de4');
|
||||
}
|
||||
if (!class_exists('Doctrine\Inflector\Inflector', false) && !interface_exists('Doctrine\Inflector\Inflector', false) && !trait_exists('Doctrine\Inflector\Inflector', false)) {
|
||||
spl_autoload_call('RectorPrefix20210614\Doctrine\Inflector\Inflector');
|
||||
@ -3323,9 +3323,9 @@ if (!function_exists('print_node')) {
|
||||
return \RectorPrefix20210614\print_node(...func_get_args());
|
||||
}
|
||||
}
|
||||
if (!function_exists('composerRequire7ca01c3532cfed17a5a881fa84c4b98c')) {
|
||||
function composerRequire7ca01c3532cfed17a5a881fa84c4b98c() {
|
||||
return \RectorPrefix20210614\composerRequire7ca01c3532cfed17a5a881fa84c4b98c(...func_get_args());
|
||||
if (!function_exists('composerRequirec827e5c9b9f2fd25b7ad37f92b957de4')) {
|
||||
function composerRequirec827e5c9b9f2fd25b7ad37f92b957de4() {
|
||||
return \RectorPrefix20210614\composerRequirec827e5c9b9f2fd25b7ad37f92b957de4(...func_get_args());
|
||||
}
|
||||
}
|
||||
if (!function_exists('parseArgs')) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user