mirror of
https://github.com/rectorphp/rector.git
synced 2025-04-22 16:32:27 +02:00
Updated Rector to commit f36390d8df22c38f996c0da40aee8565fa33c4c3
f36390d8df
Correct link in docs (#1465)
This commit is contained in:
parent
67542a3ac4
commit
891d788ac2
@ -60,7 +60,7 @@ $parameters->set(Option::APPLY_AUTO_IMPORT_NAMES_ON_CHANGED_FILES_ONLY, true);
|
||||
|
||||
## How to Remove Unused Imports?
|
||||
|
||||
To remove imports, use [ECS](github.com/symplify/easy-coding-standard) with [`NoUnusedImportsFixer`](https://github.com/FriendsOfPHP/PHP-CS-Fixer/blob/2.18/doc/rules/import/no_unused_imports.rst) rule:
|
||||
To remove imports, use [ECS](https://github.com/symplify/easy-coding-standard) with [`NoUnusedImportsFixer`](https://github.com/FriendsOfPHP/PHP-CS-Fixer/blob/2.18/doc/rules/import/no_unused_imports.rst) rule:
|
||||
|
||||
```php
|
||||
// ecs.php
|
||||
|
@ -16,11 +16,11 @@ final class VersionResolver
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = '39f6429e1bf46cfb1f3e0038fa1bac14286bc62c';
|
||||
public const PACKAGE_VERSION = 'f36390d8df22c38f996c0da40aee8565fa33c4c3';
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2021-12-11 15:08:33';
|
||||
public const RELEASE_DATE = '2021-12-11 14:19:17';
|
||||
public static function resolvePackageVersion() : string
|
||||
{
|
||||
$process = new \RectorPrefix20211211\Symfony\Component\Process\Process(['git', 'log', '--pretty="%H"', '-n1', 'HEAD'], __DIR__);
|
||||
|
2
vendor/autoload.php
vendored
2
vendor/autoload.php
vendored
@ -4,4 +4,4 @@
|
||||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInit7f68e41f518f66489e8527ebbedf18dd::getLoader();
|
||||
return ComposerAutoloaderInitdb076196ed40e547c59c17dc6e98f813::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 ComposerAutoloaderInit7f68e41f518f66489e8527ebbedf18dd
|
||||
class ComposerAutoloaderInitdb076196ed40e547c59c17dc6e98f813
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
@ -22,15 +22,15 @@ class ComposerAutoloaderInit7f68e41f518f66489e8527ebbedf18dd
|
||||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInit7f68e41f518f66489e8527ebbedf18dd', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInitdb076196ed40e547c59c17dc6e98f813', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit7f68e41f518f66489e8527ebbedf18dd', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInitdb076196ed40e547c59c17dc6e98f813', '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\ComposerStaticInit7f68e41f518f66489e8527ebbedf18dd::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInitdb076196ed40e547c59c17dc6e98f813::getInitializer($loader));
|
||||
} else {
|
||||
$classMap = require __DIR__ . '/autoload_classmap.php';
|
||||
if ($classMap) {
|
||||
@ -42,19 +42,19 @@ class ComposerAutoloaderInit7f68e41f518f66489e8527ebbedf18dd
|
||||
$loader->register(true);
|
||||
|
||||
if ($useStaticLoader) {
|
||||
$includeFiles = Composer\Autoload\ComposerStaticInit7f68e41f518f66489e8527ebbedf18dd::$files;
|
||||
$includeFiles = Composer\Autoload\ComposerStaticInitdb076196ed40e547c59c17dc6e98f813::$files;
|
||||
} else {
|
||||
$includeFiles = require __DIR__ . '/autoload_files.php';
|
||||
}
|
||||
foreach ($includeFiles as $fileIdentifier => $file) {
|
||||
composerRequire7f68e41f518f66489e8527ebbedf18dd($fileIdentifier, $file);
|
||||
composerRequiredb076196ed40e547c59c17dc6e98f813($fileIdentifier, $file);
|
||||
}
|
||||
|
||||
return $loader;
|
||||
}
|
||||
}
|
||||
|
||||
function composerRequire7f68e41f518f66489e8527ebbedf18dd($fileIdentifier, $file)
|
||||
function composerRequiredb076196ed40e547c59c17dc6e98f813($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 ComposerStaticInit7f68e41f518f66489e8527ebbedf18dd
|
||||
class ComposerStaticInitdb076196ed40e547c59c17dc6e98f813
|
||||
{
|
||||
public static $files = array (
|
||||
'0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php',
|
||||
@ -3821,9 +3821,9 @@ class ComposerStaticInit7f68e41f518f66489e8527ebbedf18dd
|
||||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit7f68e41f518f66489e8527ebbedf18dd::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit7f68e41f518f66489e8527ebbedf18dd::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit7f68e41f518f66489e8527ebbedf18dd::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInitdb076196ed40e547c59c17dc6e98f813::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInitdb076196ed40e547c59c17dc6e98f813::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInitdb076196ed40e547c59c17dc6e98f813::$classMap;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
|
10
vendor/scoper-autoload.php
vendored
10
vendor/scoper-autoload.php
vendored
@ -12,8 +12,8 @@ if (!class_exists('GenerateChangelogCommand', false) && !interface_exists('Gener
|
||||
if (!class_exists('AutoloadIncluder', false) && !interface_exists('AutoloadIncluder', false) && !trait_exists('AutoloadIncluder', false)) {
|
||||
spl_autoload_call('RectorPrefix20211211\AutoloadIncluder');
|
||||
}
|
||||
if (!class_exists('ComposerAutoloaderInit7f68e41f518f66489e8527ebbedf18dd', false) && !interface_exists('ComposerAutoloaderInit7f68e41f518f66489e8527ebbedf18dd', false) && !trait_exists('ComposerAutoloaderInit7f68e41f518f66489e8527ebbedf18dd', false)) {
|
||||
spl_autoload_call('RectorPrefix20211211\ComposerAutoloaderInit7f68e41f518f66489e8527ebbedf18dd');
|
||||
if (!class_exists('ComposerAutoloaderInitdb076196ed40e547c59c17dc6e98f813', false) && !interface_exists('ComposerAutoloaderInitdb076196ed40e547c59c17dc6e98f813', false) && !trait_exists('ComposerAutoloaderInitdb076196ed40e547c59c17dc6e98f813', false)) {
|
||||
spl_autoload_call('RectorPrefix20211211\ComposerAutoloaderInitdb076196ed40e547c59c17dc6e98f813');
|
||||
}
|
||||
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('RectorPrefix20211211\Helmich\TypoScriptParser\Parser\AST\Statement');
|
||||
@ -81,9 +81,9 @@ if (!function_exists('print_node')) {
|
||||
return \RectorPrefix20211211\print_node(...func_get_args());
|
||||
}
|
||||
}
|
||||
if (!function_exists('composerRequire7f68e41f518f66489e8527ebbedf18dd')) {
|
||||
function composerRequire7f68e41f518f66489e8527ebbedf18dd() {
|
||||
return \RectorPrefix20211211\composerRequire7f68e41f518f66489e8527ebbedf18dd(...func_get_args());
|
||||
if (!function_exists('composerRequiredb076196ed40e547c59c17dc6e98f813')) {
|
||||
function composerRequiredb076196ed40e547c59c17dc6e98f813() {
|
||||
return \RectorPrefix20211211\composerRequiredb076196ed40e547c59c17dc6e98f813(...func_get_args());
|
||||
}
|
||||
}
|
||||
if (!function_exists('scanPath')) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user