mirror of
https://github.com/rectorphp/rector.git
synced 2025-04-13 12:02:09 +02:00
Updated Rector to commit 38ed8d2f6d765cc8ca7bfa9d2c3105d05f9109ff
38ed8d2f6d
Rollback stubs-rector tweak and remove e2e/define-constant (#2377)
This commit is contained in:
parent
02fbc78a36
commit
4838a73d43
1
.github/workflows/e2e.yaml
vendored
1
.github/workflows/e2e.yaml
vendored
@ -17,7 +17,6 @@ jobs:
|
||||
matrix:
|
||||
php_version: ['7.2', '7.3', '7.4', '8.0', '8.1']
|
||||
directory:
|
||||
- 'e2e/define-constant'
|
||||
- 'e2e/dont-execute-code'
|
||||
- 'e2e/finalize'
|
||||
- 'e2e/parse-php7-code'
|
||||
|
@ -1,4 +0,0 @@
|
||||
{
|
||||
"autoload": {
|
||||
}
|
||||
}
|
@ -1,9 +0,0 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
|
||||
return static function (RectorConfig $rectorConfig): void {
|
||||
$rectorConfig->paths([__DIR__ . '/src']);
|
||||
};
|
@ -1,5 +0,0 @@
|
||||
<?php
|
||||
|
||||
if (! defined('APPPATH')) {
|
||||
define('APPPATH', realpath(rtrim($paths->appDirectory, '\\/ ')) . DIRECTORY_SEPARATOR);
|
||||
}
|
@ -16,11 +16,11 @@ final class VersionResolver
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = '2c46d4fc4d5a2fbd58c9b6e923aaafa8afa23c8b';
|
||||
public const PACKAGE_VERSION = '38ed8d2f6d765cc8ca7bfa9d2c3105d05f9109ff';
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2022-05-27 17:33:40';
|
||||
public const RELEASE_DATE = '2022-05-27 17:48:23';
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
if (PHP_VERSION_ID < 80100 && ! interface_exists('UnitEnum')) {
|
||||
if (PHP_VERSION_ID < 80100 && ! interface_exists('UnitEnum', false)) {
|
||||
/**
|
||||
* @since 8.1
|
||||
*/
|
||||
@ -13,7 +13,7 @@ if (PHP_VERSION_ID < 80100 && ! interface_exists('UnitEnum')) {
|
||||
}
|
||||
}
|
||||
|
||||
if (PHP_VERSION_ID < 80100 && ! interface_exists('BackedEnum')) {
|
||||
if (PHP_VERSION_ID < 80100 && ! interface_exists('BackedEnum', false)) {
|
||||
/**
|
||||
* @since 8.1
|
||||
*/
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
if (PHP_VERSION_ID < 80000 && ! class_exists('ReflectionUnionType')) {
|
||||
if (PHP_VERSION_ID < 80000 && ! class_exists('ReflectionUnionType', false)) {
|
||||
class ReflectionUnionType extends ReflectionType
|
||||
{
|
||||
/** @return ReflectionType[] */
|
||||
@ -11,7 +11,7 @@ if (PHP_VERSION_ID < 80000 && ! class_exists('ReflectionUnionType')) {
|
||||
}
|
||||
}
|
||||
|
||||
if (PHP_VERSION_ID < 80000 && ! class_exists('Attribute')) {
|
||||
if (PHP_VERSION_ID < 80000 && ! class_exists('Attribute', false)) {
|
||||
#[Attribute(Attribute::TARGET_CLASS)]
|
||||
class Attribute
|
||||
{
|
||||
@ -72,7 +72,7 @@ if (PHP_VERSION_ID < 80000 && ! class_exists('Attribute')) {
|
||||
}
|
||||
}
|
||||
|
||||
if (PHP_VERSION_ID < 80100 && ! class_exists('ReturnTypeWillChange')) {
|
||||
if (PHP_VERSION_ID < 80100 && ! class_exists('ReturnTypeWillChange', false)) {
|
||||
#[Attribute(Attribute::TARGET_METHOD)]
|
||||
final class ReturnTypeWillChange
|
||||
{
|
||||
|
2
vendor/autoload.php
vendored
2
vendor/autoload.php
vendored
@ -9,4 +9,4 @@ if (PHP_VERSION_ID < 50600) {
|
||||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInit33d18337111f15dfa5503c18b3f18ebd::getLoader();
|
||||
return ComposerAutoloaderInit07b017ae48102fff5eeda34edf0b6868::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 ComposerAutoloaderInit33d18337111f15dfa5503c18b3f18ebd
|
||||
class ComposerAutoloaderInit07b017ae48102fff5eeda34edf0b6868
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
@ -22,19 +22,19 @@ class ComposerAutoloaderInit33d18337111f15dfa5503c18b3f18ebd
|
||||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInit33d18337111f15dfa5503c18b3f18ebd', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInit07b017ae48102fff5eeda34edf0b6868', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit33d18337111f15dfa5503c18b3f18ebd', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit07b017ae48102fff5eeda34edf0b6868', 'loadClassLoader'));
|
||||
|
||||
require __DIR__ . '/autoload_static.php';
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit33d18337111f15dfa5503c18b3f18ebd::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit07b017ae48102fff5eeda34edf0b6868::getInitializer($loader));
|
||||
|
||||
$loader->setClassMapAuthoritative(true);
|
||||
$loader->register(true);
|
||||
|
||||
$includeFiles = \Composer\Autoload\ComposerStaticInit33d18337111f15dfa5503c18b3f18ebd::$files;
|
||||
$includeFiles = \Composer\Autoload\ComposerStaticInit07b017ae48102fff5eeda34edf0b6868::$files;
|
||||
foreach ($includeFiles as $fileIdentifier => $file) {
|
||||
composerRequire33d18337111f15dfa5503c18b3f18ebd($fileIdentifier, $file);
|
||||
composerRequire07b017ae48102fff5eeda34edf0b6868($fileIdentifier, $file);
|
||||
}
|
||||
|
||||
return $loader;
|
||||
@ -46,7 +46,7 @@ class ComposerAutoloaderInit33d18337111f15dfa5503c18b3f18ebd
|
||||
* @param string $file
|
||||
* @return void
|
||||
*/
|
||||
function composerRequire33d18337111f15dfa5503c18b3f18ebd($fileIdentifier, $file)
|
||||
function composerRequire07b017ae48102fff5eeda34edf0b6868($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 ComposerStaticInit33d18337111f15dfa5503c18b3f18ebd
|
||||
class ComposerStaticInit07b017ae48102fff5eeda34edf0b6868
|
||||
{
|
||||
public static $files = array (
|
||||
'320cde22f66dd4f5d3fd621d3e88b98f' => __DIR__ . '/..' . '/symfony/polyfill-ctype/bootstrap.php',
|
||||
@ -3915,9 +3915,9 @@ class ComposerStaticInit33d18337111f15dfa5503c18b3f18ebd
|
||||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit33d18337111f15dfa5503c18b3f18ebd::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit33d18337111f15dfa5503c18b3f18ebd::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit33d18337111f15dfa5503c18b3f18ebd::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit07b017ae48102fff5eeda34edf0b6868::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit07b017ae48102fff5eeda34edf0b6868::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit07b017ae48102fff5eeda34edf0b6868::$classMap;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
|
10
vendor/scoper-autoload.php
vendored
10
vendor/scoper-autoload.php
vendored
@ -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('RectorPrefix20220527\AutoloadIncluder');
|
||||
}
|
||||
if (!class_exists('ComposerAutoloaderInit33d18337111f15dfa5503c18b3f18ebd', false) && !interface_exists('ComposerAutoloaderInit33d18337111f15dfa5503c18b3f18ebd', false) && !trait_exists('ComposerAutoloaderInit33d18337111f15dfa5503c18b3f18ebd', false)) {
|
||||
spl_autoload_call('RectorPrefix20220527\ComposerAutoloaderInit33d18337111f15dfa5503c18b3f18ebd');
|
||||
if (!class_exists('ComposerAutoloaderInit07b017ae48102fff5eeda34edf0b6868', false) && !interface_exists('ComposerAutoloaderInit07b017ae48102fff5eeda34edf0b6868', false) && !trait_exists('ComposerAutoloaderInit07b017ae48102fff5eeda34edf0b6868', false)) {
|
||||
spl_autoload_call('RectorPrefix20220527\ComposerAutoloaderInit07b017ae48102fff5eeda34edf0b6868');
|
||||
}
|
||||
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('RectorPrefix20220527\Helmich\TypoScriptParser\Parser\AST\Statement');
|
||||
@ -59,9 +59,9 @@ if (!function_exists('print_node')) {
|
||||
return \RectorPrefix20220527\print_node(...func_get_args());
|
||||
}
|
||||
}
|
||||
if (!function_exists('composerRequire33d18337111f15dfa5503c18b3f18ebd')) {
|
||||
function composerRequire33d18337111f15dfa5503c18b3f18ebd() {
|
||||
return \RectorPrefix20220527\composerRequire33d18337111f15dfa5503c18b3f18ebd(...func_get_args());
|
||||
if (!function_exists('composerRequire07b017ae48102fff5eeda34edf0b6868')) {
|
||||
function composerRequire07b017ae48102fff5eeda34edf0b6868() {
|
||||
return \RectorPrefix20220527\composerRequire07b017ae48102fff5eeda34edf0b6868(...func_get_args());
|
||||
}
|
||||
}
|
||||
if (!function_exists('scanPath')) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user