Skip to content

Commit

Permalink
Updated Rector to commit a66d1fb
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Jan 16, 2022
1 parent 77fe375 commit 436942b
Show file tree
Hide file tree
Showing 12 changed files with 30 additions and 30 deletions.
10 changes: 5 additions & 5 deletions docs/rector_rules_overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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)

Expand Down Expand Up @@ -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)

Expand Down Expand Up @@ -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!**

Expand Down Expand Up @@ -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)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function configure(array $configuration) : void
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()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function __construct(\Rector\Core\NodeManipulator\ClassInsertManipulator
}
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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
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';
/**
Expand Down
4 changes: 2 additions & 2 deletions src/Application/VersionResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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__);
Expand Down
2 changes: 1 addition & 1 deletion vendor/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

require_once __DIR__ . '/composer/autoload_real.php';

return ComposerAutoloaderInit9238a8297075eda80a65ad4865410340::getLoader();
return ComposerAutoloaderInit2723fce1b430c621a44ef315002749a9::getLoader();
14 changes: 7 additions & 7 deletions vendor/composer/autoload_real.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// autoload_real.php @generated by Composer

class ComposerAutoloaderInit9238a8297075eda80a65ad4865410340
class ComposerAutoloaderInit2723fce1b430c621a44ef315002749a9
{
private static $loader;

Expand All @@ -22,15 +22,15 @@ public static function getLoader()
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) {
Expand All @@ -42,12 +42,12 @@ public static function getLoader()
$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;
Expand All @@ -59,7 +59,7 @@ public static function getLoader()
* @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;
Expand Down
8 changes: 4 additions & 4 deletions vendor/composer/autoload_static.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Composer\Autoload;

class ComposerStaticInit9238a8297075eda80a65ad4865410340
class ComposerStaticInit2723fce1b430c621a44ef315002749a9
{
public static $files = array (
'0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php',
Expand Down Expand Up @@ -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);
}
Expand Down
10 changes: 5 additions & 5 deletions vendor/scoper-autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
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');
Expand Down Expand Up @@ -71,9 +71,9 @@ function 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')) {
Expand Down

0 comments on commit 436942b

Please sign in to comment.