mirror of https://github.com/rectorphp/rector.git
Updated Rector to commit e2bd1841f4
e2bd1841f4
[Scoped] Remove e2e global install take 2 (#1785)
This commit is contained in:
parent
49f90fb6e5
commit
1c13355cf7
|
@ -1 +0,0 @@
|
|||
/vendor
|
|
@ -1,7 +0,0 @@
|
|||
<?php
|
||||
|
||||
namespace App;
|
||||
|
||||
interface ExceptionInterface
|
||||
{
|
||||
}
|
|
@ -1,8 +0,0 @@
|
|||
{
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"App\\": "App",
|
||||
"GlobalInstall\\": "src"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,15 +0,0 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
use Rector\CodingStyle\Rector\ClassMethod\MakeInheritedMethodVisibilitySameAsParentRector;
|
||||
use Rector\Core\Configuration\Option;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
|
||||
return static function (ContainerConfigurator $containerConfigurator): void {
|
||||
$parameters = $containerConfigurator->parameters();
|
||||
$parameters->set(Option::PATHS, [__DIR__ . '/src/']);
|
||||
|
||||
$services = $containerConfigurator->services();
|
||||
$services->set(MakeInheritedMethodVisibilitySameAsParentRector::class);
|
||||
};
|
|
@ -1,13 +0,0 @@
|
|||
<?php
|
||||
|
||||
namespace GlobalInstall;
|
||||
|
||||
use App\ExceptionInterface;
|
||||
|
||||
class MyException extends \RuntimeException implements ExceptionInterface
|
||||
{
|
||||
public static function forAnything(string $content)
|
||||
{
|
||||
return new static($content);
|
||||
}
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
{
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Foo\\": "src"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,14 +0,0 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
use Rector\Core\Configuration\Option;
|
||||
use Rector\Set\ValueObject\SetList;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
|
||||
return static function (ContainerConfigurator $containerConfigurator): void {
|
||||
$parameters = $containerConfigurator->parameters();
|
||||
$parameters->set(Option::PATHS, [__DIR__.'/src']);
|
||||
|
||||
$containerConfigurator->import(SetList::PHP_53);
|
||||
};
|
|
@ -1,10 +0,0 @@
|
|||
<?php
|
||||
|
||||
namespace Foo;
|
||||
|
||||
class Foo
|
||||
{
|
||||
public function __construct(
|
||||
public string $property = 'value',
|
||||
) {}
|
||||
}
|
|
@ -16,11 +16,11 @@ final class VersionResolver
|
|||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = 'de8ebd038e2a8ea838964d07059f98ffcbc72a44';
|
||||
public const PACKAGE_VERSION = 'e2bd1841f453150064274d3eedd6fb4db535f5a3';
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2022-02-08 21:43:20';
|
||||
public const RELEASE_DATE = '2022-02-08 22:03:29';
|
||||
public static function resolvePackageVersion() : string
|
||||
{
|
||||
$process = new \RectorPrefix20220208\Symfony\Component\Process\Process(['git', 'log', '--pretty="%H"', '-n1', 'HEAD'], __DIR__);
|
||||
|
|
|
@ -4,4 +4,4 @@
|
|||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInit106237b192f05ea1c7d493b94dbe92bc::getLoader();
|
||||
return ComposerAutoloaderInit1f478404d094907764608e16fb7951cf::getLoader();
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
// autoload_real.php @generated by Composer
|
||||
|
||||
class ComposerAutoloaderInit106237b192f05ea1c7d493b94dbe92bc
|
||||
class ComposerAutoloaderInit1f478404d094907764608e16fb7951cf
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
|
@ -22,15 +22,15 @@ class ComposerAutoloaderInit106237b192f05ea1c7d493b94dbe92bc
|
|||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInit106237b192f05ea1c7d493b94dbe92bc', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInit1f478404d094907764608e16fb7951cf', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit106237b192f05ea1c7d493b94dbe92bc', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit1f478404d094907764608e16fb7951cf', '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\ComposerStaticInit106237b192f05ea1c7d493b94dbe92bc::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit1f478404d094907764608e16fb7951cf::getInitializer($loader));
|
||||
} else {
|
||||
$classMap = require __DIR__ . '/autoload_classmap.php';
|
||||
if ($classMap) {
|
||||
|
@ -42,12 +42,12 @@ class ComposerAutoloaderInit106237b192f05ea1c7d493b94dbe92bc
|
|||
$loader->register(true);
|
||||
|
||||
if ($useStaticLoader) {
|
||||
$includeFiles = Composer\Autoload\ComposerStaticInit106237b192f05ea1c7d493b94dbe92bc::$files;
|
||||
$includeFiles = Composer\Autoload\ComposerStaticInit1f478404d094907764608e16fb7951cf::$files;
|
||||
} else {
|
||||
$includeFiles = require __DIR__ . '/autoload_files.php';
|
||||
}
|
||||
foreach ($includeFiles as $fileIdentifier => $file) {
|
||||
composerRequire106237b192f05ea1c7d493b94dbe92bc($fileIdentifier, $file);
|
||||
composerRequire1f478404d094907764608e16fb7951cf($fileIdentifier, $file);
|
||||
}
|
||||
|
||||
return $loader;
|
||||
|
@ -59,7 +59,7 @@ class ComposerAutoloaderInit106237b192f05ea1c7d493b94dbe92bc
|
|||
* @param string $file
|
||||
* @return void
|
||||
*/
|
||||
function composerRequire106237b192f05ea1c7d493b94dbe92bc($fileIdentifier, $file)
|
||||
function composerRequire1f478404d094907764608e16fb7951cf($fileIdentifier, $file)
|
||||
{
|
||||
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
||||
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
namespace Composer\Autoload;
|
||||
|
||||
class ComposerStaticInit106237b192f05ea1c7d493b94dbe92bc
|
||||
class ComposerStaticInit1f478404d094907764608e16fb7951cf
|
||||
{
|
||||
public static $files = array (
|
||||
'0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php',
|
||||
|
@ -3863,9 +3863,9 @@ class ComposerStaticInit106237b192f05ea1c7d493b94dbe92bc
|
|||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit106237b192f05ea1c7d493b94dbe92bc::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit106237b192f05ea1c7d493b94dbe92bc::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit106237b192f05ea1c7d493b94dbe92bc::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit1f478404d094907764608e16fb7951cf::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit1f478404d094907764608e16fb7951cf::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit1f478404d094907764608e16fb7951cf::$classMap;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
|
|
|
@ -9,8 +9,8 @@ $loader = require_once __DIR__.'/autoload.php';
|
|||
if (!class_exists('AutoloadIncluder', false) && !interface_exists('AutoloadIncluder', false) && !trait_exists('AutoloadIncluder', false)) {
|
||||
spl_autoload_call('RectorPrefix20220208\AutoloadIncluder');
|
||||
}
|
||||
if (!class_exists('ComposerAutoloaderInit106237b192f05ea1c7d493b94dbe92bc', false) && !interface_exists('ComposerAutoloaderInit106237b192f05ea1c7d493b94dbe92bc', false) && !trait_exists('ComposerAutoloaderInit106237b192f05ea1c7d493b94dbe92bc', false)) {
|
||||
spl_autoload_call('RectorPrefix20220208\ComposerAutoloaderInit106237b192f05ea1c7d493b94dbe92bc');
|
||||
if (!class_exists('ComposerAutoloaderInit1f478404d094907764608e16fb7951cf', false) && !interface_exists('ComposerAutoloaderInit1f478404d094907764608e16fb7951cf', false) && !trait_exists('ComposerAutoloaderInit1f478404d094907764608e16fb7951cf', false)) {
|
||||
spl_autoload_call('RectorPrefix20220208\ComposerAutoloaderInit1f478404d094907764608e16fb7951cf');
|
||||
}
|
||||
if (!class_exists('Helmich\TypoScriptParser\Parser\AST\Statement', false) && !interface_exists('Helmich\TypoScriptParser\Parser\AST\Statement', false) && !trait_exists('Helmich\TypoScriptParser\Parser\AST\Statement', false)) {
|
||||
spl_autoload_call('RectorPrefix20220208\Helmich\TypoScriptParser\Parser\AST\Statement');
|
||||
|
@ -71,9 +71,9 @@ if (!function_exists('print_node')) {
|
|||
return \RectorPrefix20220208\print_node(...func_get_args());
|
||||
}
|
||||
}
|
||||
if (!function_exists('composerRequire106237b192f05ea1c7d493b94dbe92bc')) {
|
||||
function composerRequire106237b192f05ea1c7d493b94dbe92bc() {
|
||||
return \RectorPrefix20220208\composerRequire106237b192f05ea1c7d493b94dbe92bc(...func_get_args());
|
||||
if (!function_exists('composerRequire1f478404d094907764608e16fb7951cf')) {
|
||||
function composerRequire1f478404d094907764608e16fb7951cf() {
|
||||
return \RectorPrefix20220208\composerRequire1f478404d094907764608e16fb7951cf(...func_get_args());
|
||||
}
|
||||
}
|
||||
if (!function_exists('scanPath')) {
|
||||
|
|
Loading…
Reference in New Issue