mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-07 11:50:51 +00:00
Updated Rector to commit e6d338840c
e6d338840c
want see -> want to see (#1721)
This commit is contained in:
parent
d3e1bb7e5d
commit
81b953330b
10
README.md
10
README.md
|
@ -4,7 +4,7 @@
|
|||
|
||||
<br>
|
||||
|
||||
Rector instantly upgrades and refactors the PHP code of your application. It can help you 2 major areas:
|
||||
Rector instantly upgrades and refactors the PHP code of your application. It can help you in 2 major areas:
|
||||
|
||||
### 1. Instant Upgrades
|
||||
|
||||
|
@ -14,7 +14,7 @@ Use Rector to handle **instant upgrades** for you.
|
|||
|
||||
### 2. Automated Refactoring
|
||||
|
||||
Do you have code quality you need, but struggle to keep it with new developers in your team? Do you want see smart code-reviews even when every senior developers sleeps?
|
||||
Do you have code quality you need, but struggle to keep it with new developers in your team? Do you want to see smart code-reviews even when every senior developers sleeps?
|
||||
|
||||
Add Rector to your CI and let it **continuously refactor your code** and keep the code quality high.
|
||||
|
||||
|
@ -61,7 +61,7 @@ composer require rector/rector --dev
|
|||
|
||||
## Running Rector
|
||||
|
||||
There a 2 main ways to use Rector:
|
||||
There are 2 main ways to use Rector:
|
||||
|
||||
- a *single rule*, to have the change under control
|
||||
- or group of rules called *sets*
|
||||
|
@ -126,7 +126,7 @@ return static function (ContainerConfigurator $containerConfigurator): void {
|
|||
// is your PHP version different from the one your refactor to? [default: your PHP version], uses PHP_VERSION_ID format
|
||||
$parameters->set(Option::PHP_VERSION_FEATURES, PhpVersion::PHP_72);
|
||||
|
||||
// Path to phpstan with extensions, that PHPSTan in Rector uses to determine types
|
||||
// Path to phpstan with extensions, that PHPStan in Rector uses to determine types
|
||||
$parameters->set(Option::PHPSTAN_FOR_RECTOR_PATH, getcwd() . '/phpstan-for-config.neon');
|
||||
};
|
||||
```
|
||||
|
@ -164,7 +164,7 @@ Or with Xdebug:
|
|||
vendor/bin/rector process src/Controller --dry-run --xdebug
|
||||
```
|
||||
|
||||
To assist with simple debugging Rector provides a 2 helpers to pretty-print AST-nodes:
|
||||
To assist with simple debugging Rector provides 2 helpers to pretty-print AST-nodes:
|
||||
|
||||
```php
|
||||
use PhpParser\Node\Scalar\String_;
|
||||
|
|
|
@ -16,11 +16,11 @@ final class VersionResolver
|
|||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = '084ac39f29204e2763433d07422a081c39c6399b';
|
||||
public const PACKAGE_VERSION = 'e6d338840c4452bdd18397851af5f64343183210';
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2022-01-24 23:00:10';
|
||||
public const RELEASE_DATE = '2022-01-25 09:30:43';
|
||||
public static function resolvePackageVersion() : string
|
||||
{
|
||||
$process = new \RectorPrefix20220125\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 ComposerAutoloaderInitcc31b1ea77f3e7b8242d15fadf56dd21::getLoader();
|
||||
return ComposerAutoloaderInit613a043c650006fa3e855b7db21f7341::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 ComposerAutoloaderInitcc31b1ea77f3e7b8242d15fadf56dd21
|
||||
class ComposerAutoloaderInit613a043c650006fa3e855b7db21f7341
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
|
@ -22,15 +22,15 @@ class ComposerAutoloaderInitcc31b1ea77f3e7b8242d15fadf56dd21
|
|||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInitcc31b1ea77f3e7b8242d15fadf56dd21', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInit613a043c650006fa3e855b7db21f7341', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInitcc31b1ea77f3e7b8242d15fadf56dd21', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit613a043c650006fa3e855b7db21f7341', '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\ComposerStaticInitcc31b1ea77f3e7b8242d15fadf56dd21::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit613a043c650006fa3e855b7db21f7341::getInitializer($loader));
|
||||
} else {
|
||||
$classMap = require __DIR__ . '/autoload_classmap.php';
|
||||
if ($classMap) {
|
||||
|
@ -42,12 +42,12 @@ class ComposerAutoloaderInitcc31b1ea77f3e7b8242d15fadf56dd21
|
|||
$loader->register(true);
|
||||
|
||||
if ($useStaticLoader) {
|
||||
$includeFiles = Composer\Autoload\ComposerStaticInitcc31b1ea77f3e7b8242d15fadf56dd21::$files;
|
||||
$includeFiles = Composer\Autoload\ComposerStaticInit613a043c650006fa3e855b7db21f7341::$files;
|
||||
} else {
|
||||
$includeFiles = require __DIR__ . '/autoload_files.php';
|
||||
}
|
||||
foreach ($includeFiles as $fileIdentifier => $file) {
|
||||
composerRequirecc31b1ea77f3e7b8242d15fadf56dd21($fileIdentifier, $file);
|
||||
composerRequire613a043c650006fa3e855b7db21f7341($fileIdentifier, $file);
|
||||
}
|
||||
|
||||
return $loader;
|
||||
|
@ -59,7 +59,7 @@ class ComposerAutoloaderInitcc31b1ea77f3e7b8242d15fadf56dd21
|
|||
* @param string $file
|
||||
* @return void
|
||||
*/
|
||||
function composerRequirecc31b1ea77f3e7b8242d15fadf56dd21($fileIdentifier, $file)
|
||||
function composerRequire613a043c650006fa3e855b7db21f7341($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 ComposerStaticInitcc31b1ea77f3e7b8242d15fadf56dd21
|
||||
class ComposerStaticInit613a043c650006fa3e855b7db21f7341
|
||||
{
|
||||
public static $files = array (
|
||||
'0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php',
|
||||
|
@ -3874,9 +3874,9 @@ class ComposerStaticInitcc31b1ea77f3e7b8242d15fadf56dd21
|
|||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInitcc31b1ea77f3e7b8242d15fadf56dd21::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInitcc31b1ea77f3e7b8242d15fadf56dd21::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInitcc31b1ea77f3e7b8242d15fadf56dd21::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit613a043c650006fa3e855b7db21f7341::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit613a043c650006fa3e855b7db21f7341::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit613a043c650006fa3e855b7db21f7341::$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('RectorPrefix20220125\AutoloadIncluder');
|
||||
}
|
||||
if (!class_exists('ComposerAutoloaderInitcc31b1ea77f3e7b8242d15fadf56dd21', false) && !interface_exists('ComposerAutoloaderInitcc31b1ea77f3e7b8242d15fadf56dd21', false) && !trait_exists('ComposerAutoloaderInitcc31b1ea77f3e7b8242d15fadf56dd21', false)) {
|
||||
spl_autoload_call('RectorPrefix20220125\ComposerAutoloaderInitcc31b1ea77f3e7b8242d15fadf56dd21');
|
||||
if (!class_exists('ComposerAutoloaderInit613a043c650006fa3e855b7db21f7341', false) && !interface_exists('ComposerAutoloaderInit613a043c650006fa3e855b7db21f7341', false) && !trait_exists('ComposerAutoloaderInit613a043c650006fa3e855b7db21f7341', false)) {
|
||||
spl_autoload_call('RectorPrefix20220125\ComposerAutoloaderInit613a043c650006fa3e855b7db21f7341');
|
||||
}
|
||||
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('RectorPrefix20220125\Helmich\TypoScriptParser\Parser\AST\Statement');
|
||||
|
@ -71,9 +71,9 @@ if (!function_exists('print_node')) {
|
|||
return \RectorPrefix20220125\print_node(...func_get_args());
|
||||
}
|
||||
}
|
||||
if (!function_exists('composerRequirecc31b1ea77f3e7b8242d15fadf56dd21')) {
|
||||
function composerRequirecc31b1ea77f3e7b8242d15fadf56dd21() {
|
||||
return \RectorPrefix20220125\composerRequirecc31b1ea77f3e7b8242d15fadf56dd21(...func_get_args());
|
||||
if (!function_exists('composerRequire613a043c650006fa3e855b7db21f7341')) {
|
||||
function composerRequire613a043c650006fa3e855b7db21f7341() {
|
||||
return \RectorPrefix20220125\composerRequire613a043c650006fa3e855b7db21f7341(...func_get_args());
|
||||
}
|
||||
}
|
||||
if (!function_exists('scanPath')) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user