mirror of
https://github.com/rectorphp/rector.git
synced 2025-04-19 06:52:51 +02:00
Updated Rector to commit a66d1fbb9fb40c4894c64d1d0ae75a027368cfb1
a66d1fbb9f
Fix wrong typos rebase (#1686)
This commit is contained in:
parent
77fe375a0b
commit
436942b929
@ -379,7 +379,7 @@ return static function (ContainerConfigurator $containerConfigurator): void {
|
||||
|
||||
### AbsolutizeRequireAndIncludePathRector
|
||||
|
||||
include/require to absolute path. This Rector might introduce backwards incompatible code, when the include/require beeing changed depends on the current working directory.
|
||||
include/require to absolute path. This Rector might introduce backwards incompatible code, when the include/require being changed depends on the current working directory.
|
||||
|
||||
- class: [`Rector\CodeQuality\Rector\Include_\AbsolutizeRequireAndIncludePathRector`](../rules/CodeQuality/Rector/Include_/AbsolutizeRequireAndIncludePathRector.php)
|
||||
|
||||
@ -434,7 +434,7 @@ Split 2 assigns ands to separate line
|
||||
|
||||
### ArrayKeyExistsTernaryThenValueToCoalescingRector
|
||||
|
||||
Change `array_key_exists()` ternary to coalesing
|
||||
Change `array_key_exists()` ternary to coalescing
|
||||
|
||||
- class: [`Rector\CodeQuality\Rector\Ternary\ArrayKeyExistsTernaryThenValueToCoalescingRector`](../rules/CodeQuality/Rector/Ternary/ArrayKeyExistsTernaryThenValueToCoalescingRector.php)
|
||||
|
||||
@ -1261,7 +1261,7 @@ Simplify array_search to in_array
|
||||
|
||||
### SimplifyBoolIdenticalTrueRector
|
||||
|
||||
Symplify bool value compare to true or false
|
||||
Simplify bool value compare to true or false
|
||||
|
||||
- class: [`Rector\CodeQuality\Rector\Identical\SimplifyBoolIdenticalTrueRector`](../rules/CodeQuality/Rector/Identical/SimplifyBoolIdenticalTrueRector.php)
|
||||
|
||||
@ -3349,7 +3349,7 @@ Remove unused parent call with no parent class
|
||||
|
||||
### RemovePhpVersionIdCheckRector
|
||||
|
||||
Remove unneded PHP_VERSION_ID check
|
||||
Remove unneeded PHP_VERSION_ID check
|
||||
|
||||
:wrench: **configure it!**
|
||||
|
||||
@ -5513,7 +5513,7 @@ change instanceof Object to is_resource
|
||||
|
||||
### DowngradePropertyPromotionRector
|
||||
|
||||
Change constructor property promotion to property asssign
|
||||
Change constructor property promotion to property assign
|
||||
|
||||
- class: [`Rector\DowngradePhp80\Rector\Class_\DowngradePropertyPromotionRector`](../rules/DowngradePhp80/Rector/Class_/DowngradePropertyPromotionRector.php)
|
||||
|
||||
|
@ -19,7 +19,7 @@ final class SimplifyBoolIdenticalTrueRector extends \Rector\Core\Rector\Abstract
|
||||
{
|
||||
public function getRuleDefinition() : \Symplify\RuleDocGenerator\ValueObject\RuleDefinition
|
||||
{
|
||||
return new \Symplify\RuleDocGenerator\ValueObject\RuleDefinition('Symplify bool value compare to true or false', [new \Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample(<<<'CODE_SAMPLE'
|
||||
return new \Symplify\RuleDocGenerator\ValueObject\RuleDefinition('Simplify bool value compare to true or false', [new \Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample(<<<'CODE_SAMPLE'
|
||||
class SomeClass
|
||||
{
|
||||
public function run(bool $value, string $items)
|
||||
|
@ -21,7 +21,7 @@ final class AbsolutizeRequireAndIncludePathRector extends \Rector\Core\Rector\Ab
|
||||
{
|
||||
public function getRuleDefinition() : \Symplify\RuleDocGenerator\ValueObject\RuleDefinition
|
||||
{
|
||||
return new \Symplify\RuleDocGenerator\ValueObject\RuleDefinition('include/require to absolute path. This Rector might introduce backwards incompatible code, when the include/require beeing changed depends on the current working directory.', [new \Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample(<<<'CODE_SAMPLE'
|
||||
return new \Symplify\RuleDocGenerator\ValueObject\RuleDefinition('include/require to absolute path. This Rector might introduce backwards incompatible code, when the include/require being changed depends on the current working directory.', [new \Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample(<<<'CODE_SAMPLE'
|
||||
class SomeClass
|
||||
{
|
||||
public function run()
|
||||
|
@ -21,7 +21,7 @@ final class ArrayKeyExistsTernaryThenValueToCoalescingRector extends \Rector\Cor
|
||||
{
|
||||
public function getRuleDefinition() : \Symplify\RuleDocGenerator\ValueObject\RuleDefinition
|
||||
{
|
||||
return new \Symplify\RuleDocGenerator\ValueObject\RuleDefinition('Change array_key_exists() ternary to coalesing', [new \Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample(<<<'CODE_SAMPLE'
|
||||
return new \Symplify\RuleDocGenerator\ValueObject\RuleDefinition('Change array_key_exists() ternary to coalescing', [new \Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample(<<<'CODE_SAMPLE'
|
||||
class SomeClass
|
||||
{
|
||||
public function run($values, $keyToMatch)
|
||||
|
@ -51,7 +51,7 @@ final class RemovePhpVersionIdCheckRector extends \Rector\Core\Rector\AbstractRe
|
||||
public function getRuleDefinition() : \Symplify\RuleDocGenerator\ValueObject\RuleDefinition
|
||||
{
|
||||
$exampleConfiguration = [self::PHP_VERSION_CONSTRAINT => \Rector\Core\ValueObject\PhpVersion::PHP_80];
|
||||
return new \Symplify\RuleDocGenerator\ValueObject\RuleDefinition('Remove unneded PHP_VERSION_ID check', [new \Symplify\RuleDocGenerator\ValueObject\CodeSample\ConfiguredCodeSample(<<<'CODE_SAMPLE'
|
||||
return new \Symplify\RuleDocGenerator\ValueObject\RuleDefinition('Remove unneeded PHP_VERSION_ID check', [new \Symplify\RuleDocGenerator\ValueObject\CodeSample\ConfiguredCodeSample(<<<'CODE_SAMPLE'
|
||||
class SomeClass
|
||||
{
|
||||
public function run()
|
||||
|
@ -45,7 +45,7 @@ final class DowngradePropertyPromotionRector extends \Rector\Core\Rector\Abstrac
|
||||
}
|
||||
public function getRuleDefinition() : \Symplify\RuleDocGenerator\ValueObject\RuleDefinition
|
||||
{
|
||||
return new \Symplify\RuleDocGenerator\ValueObject\RuleDefinition('Change constructor property promotion to property asssign', [new \Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample(<<<'CODE_SAMPLE'
|
||||
return new \Symplify\RuleDocGenerator\ValueObject\RuleDefinition('Change constructor property promotion to property assign', [new \Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample(<<<'CODE_SAMPLE'
|
||||
class SomeClass
|
||||
{
|
||||
public function __construct(public float $value = 0.0)
|
||||
|
@ -26,7 +26,7 @@ use RectorPrefix20220116\Webmozart\Assert\Assert;
|
||||
final class AddVoidReturnTypeWhereNoReturnRector extends \Rector\Core\Rector\AbstractRector implements \Rector\VersionBonding\Contract\MinPhpVersionInterface, \Rector\Core\Contract\Rector\AllowEmptyConfigurableRectorInterface
|
||||
{
|
||||
/**
|
||||
* @var string using phpdoc instead of a native void type can ease the migration path for consumers of code beeing processed.
|
||||
* @var string using phpdoc instead of a native void type can ease the migration path for consumers of code being processed.
|
||||
*/
|
||||
public const USE_PHPDOC = 'use_phpdoc';
|
||||
/**
|
||||
|
@ -16,11 +16,11 @@ final class VersionResolver
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = '6b965fe744f438b0614597bec485ad8ec23831d9';
|
||||
public const PACKAGE_VERSION = 'a66d1fbb9fb40c4894c64d1d0ae75a027368cfb1';
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2022-01-16 02:17:12';
|
||||
public const RELEASE_DATE = '2022-01-16 09:52:32';
|
||||
public static function resolvePackageVersion() : string
|
||||
{
|
||||
$process = new \RectorPrefix20220116\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 ComposerAutoloaderInit9238a8297075eda80a65ad4865410340::getLoader();
|
||||
return ComposerAutoloaderInit2723fce1b430c621a44ef315002749a9::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 ComposerAutoloaderInit9238a8297075eda80a65ad4865410340
|
||||
class ComposerAutoloaderInit2723fce1b430c621a44ef315002749a9
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
@ -22,15 +22,15 @@ class ComposerAutoloaderInit9238a8297075eda80a65ad4865410340
|
||||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInit9238a8297075eda80a65ad4865410340', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInit2723fce1b430c621a44ef315002749a9', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit9238a8297075eda80a65ad4865410340', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit2723fce1b430c621a44ef315002749a9', '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\ComposerStaticInit9238a8297075eda80a65ad4865410340::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit2723fce1b430c621a44ef315002749a9::getInitializer($loader));
|
||||
} else {
|
||||
$classMap = require __DIR__ . '/autoload_classmap.php';
|
||||
if ($classMap) {
|
||||
@ -42,12 +42,12 @@ class ComposerAutoloaderInit9238a8297075eda80a65ad4865410340
|
||||
$loader->register(true);
|
||||
|
||||
if ($useStaticLoader) {
|
||||
$includeFiles = Composer\Autoload\ComposerStaticInit9238a8297075eda80a65ad4865410340::$files;
|
||||
$includeFiles = Composer\Autoload\ComposerStaticInit2723fce1b430c621a44ef315002749a9::$files;
|
||||
} else {
|
||||
$includeFiles = require __DIR__ . '/autoload_files.php';
|
||||
}
|
||||
foreach ($includeFiles as $fileIdentifier => $file) {
|
||||
composerRequire9238a8297075eda80a65ad4865410340($fileIdentifier, $file);
|
||||
composerRequire2723fce1b430c621a44ef315002749a9($fileIdentifier, $file);
|
||||
}
|
||||
|
||||
return $loader;
|
||||
@ -59,7 +59,7 @@ class ComposerAutoloaderInit9238a8297075eda80a65ad4865410340
|
||||
* @param string $file
|
||||
* @return void
|
||||
*/
|
||||
function composerRequire9238a8297075eda80a65ad4865410340($fileIdentifier, $file)
|
||||
function composerRequire2723fce1b430c621a44ef315002749a9($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 ComposerStaticInit9238a8297075eda80a65ad4865410340
|
||||
class ComposerStaticInit2723fce1b430c621a44ef315002749a9
|
||||
{
|
||||
public static $files = array (
|
||||
'0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php',
|
||||
@ -3865,9 +3865,9 @@ class ComposerStaticInit9238a8297075eda80a65ad4865410340
|
||||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit9238a8297075eda80a65ad4865410340::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit9238a8297075eda80a65ad4865410340::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit9238a8297075eda80a65ad4865410340::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit2723fce1b430c621a44ef315002749a9::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit2723fce1b430c621a44ef315002749a9::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit2723fce1b430c621a44ef315002749a9::$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('RectorPrefix20220116\AutoloadIncluder');
|
||||
}
|
||||
if (!class_exists('ComposerAutoloaderInit9238a8297075eda80a65ad4865410340', false) && !interface_exists('ComposerAutoloaderInit9238a8297075eda80a65ad4865410340', false) && !trait_exists('ComposerAutoloaderInit9238a8297075eda80a65ad4865410340', false)) {
|
||||
spl_autoload_call('RectorPrefix20220116\ComposerAutoloaderInit9238a8297075eda80a65ad4865410340');
|
||||
if (!class_exists('ComposerAutoloaderInit2723fce1b430c621a44ef315002749a9', false) && !interface_exists('ComposerAutoloaderInit2723fce1b430c621a44ef315002749a9', false) && !trait_exists('ComposerAutoloaderInit2723fce1b430c621a44ef315002749a9', false)) {
|
||||
spl_autoload_call('RectorPrefix20220116\ComposerAutoloaderInit2723fce1b430c621a44ef315002749a9');
|
||||
}
|
||||
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('RectorPrefix20220116\Helmich\TypoScriptParser\Parser\AST\Statement');
|
||||
@ -71,9 +71,9 @@ if (!function_exists('print_node')) {
|
||||
return \RectorPrefix20220116\print_node(...func_get_args());
|
||||
}
|
||||
}
|
||||
if (!function_exists('composerRequire9238a8297075eda80a65ad4865410340')) {
|
||||
function composerRequire9238a8297075eda80a65ad4865410340() {
|
||||
return \RectorPrefix20220116\composerRequire9238a8297075eda80a65ad4865410340(...func_get_args());
|
||||
if (!function_exists('composerRequire2723fce1b430c621a44ef315002749a9')) {
|
||||
function composerRequire2723fce1b430c621a44ef315002749a9() {
|
||||
return \RectorPrefix20220116\composerRequire2723fce1b430c621a44ef315002749a9(...func_get_args());
|
||||
}
|
||||
}
|
||||
if (!function_exists('scanPath')) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user