mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-28 05:33:30 +00:00
Updated Rector to commit 28ed5cf916
28ed5cf916
[automated] Re-Generate Nodes/Rectors Documentation (#2479)
This commit is contained in:
parent
7efb3b4f5f
commit
7a181db4ce
|
@ -72,9 +72,9 @@
|
|||
|
||||
- [Php74](#php74) (13)
|
||||
|
||||
- [Php80](#php80) (18)
|
||||
- [Php80](#php80) (17)
|
||||
|
||||
- [Php81](#php81) (9)
|
||||
- [Php81](#php81) (10)
|
||||
|
||||
- [Php82](#php82) (1)
|
||||
|
||||
|
@ -8244,26 +8244,6 @@ Change simple property init and assign to constructor promotion
|
|||
|
||||
<br>
|
||||
|
||||
### ConstantListClassToEnumRector
|
||||
|
||||
Upgrade constant list classes to full blown enum
|
||||
|
||||
- class: [`Rector\Php81\Rector\Class_\ConstantListClassToEnumRector`](../rules/Php80/Rector/Class_/ConstantListClassToEnumRector.php)
|
||||
|
||||
```diff
|
||||
-class Direction
|
||||
+enum Direction
|
||||
{
|
||||
- public const LEFT = 'left';
|
||||
+ case LEFT;
|
||||
|
||||
- public const RIGHT = 'right';
|
||||
+ case RIGHT;
|
||||
}
|
||||
```
|
||||
|
||||
<br>
|
||||
|
||||
### DoctrineAnnotationClassToAttributeRector
|
||||
|
||||
Refactor Doctrine `@annotation` annotated class to a PHP 8.0 attribute class
|
||||
|
@ -8551,6 +8531,26 @@ Change docs types to union types, where possible (properties are covered by Type
|
|||
|
||||
## Php81
|
||||
|
||||
### ConstantListClassToEnumRector
|
||||
|
||||
Upgrade constant list classes to full blown enum
|
||||
|
||||
- class: [`Rector\Php81\Rector\Class_\ConstantListClassToEnumRector`](../rules/Php81/Rector/Class_/ConstantListClassToEnumRector.php)
|
||||
|
||||
```diff
|
||||
-class Direction
|
||||
+enum Direction
|
||||
{
|
||||
- public const LEFT = 'left';
|
||||
+ case LEFT;
|
||||
|
||||
- public const RIGHT = 'right';
|
||||
+ case RIGHT;
|
||||
}
|
||||
```
|
||||
|
||||
<br>
|
||||
|
||||
### FinalizePublicClassConstantRector
|
||||
|
||||
Add final to constants that does not have children
|
||||
|
|
|
@ -16,11 +16,11 @@ final class VersionResolver
|
|||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = 'e1188e9bffd33b902b51de71a3c2cf06ce48b9e2';
|
||||
public const PACKAGE_VERSION = '28ed5cf91639d0edf384fcf0d52ea02266b21657';
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2022-06-11 15:58:17';
|
||||
public const RELEASE_DATE = '2022-06-12 00:29:50';
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
|
|
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 ComposerAutoloaderInit65d054fe68de3e47c45de29f92f6f0ea::getLoader();
|
||||
return ComposerAutoloaderInit47bfae53c533fdd39ebb83bc6ae54952::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 ComposerAutoloaderInit65d054fe68de3e47c45de29f92f6f0ea
|
||||
class ComposerAutoloaderInit47bfae53c533fdd39ebb83bc6ae54952
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
|
@ -22,19 +22,19 @@ class ComposerAutoloaderInit65d054fe68de3e47c45de29f92f6f0ea
|
|||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInit65d054fe68de3e47c45de29f92f6f0ea', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInit47bfae53c533fdd39ebb83bc6ae54952', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit65d054fe68de3e47c45de29f92f6f0ea', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit47bfae53c533fdd39ebb83bc6ae54952', 'loadClassLoader'));
|
||||
|
||||
require __DIR__ . '/autoload_static.php';
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit65d054fe68de3e47c45de29f92f6f0ea::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit47bfae53c533fdd39ebb83bc6ae54952::getInitializer($loader));
|
||||
|
||||
$loader->setClassMapAuthoritative(true);
|
||||
$loader->register(true);
|
||||
|
||||
$includeFiles = \Composer\Autoload\ComposerStaticInit65d054fe68de3e47c45de29f92f6f0ea::$files;
|
||||
$includeFiles = \Composer\Autoload\ComposerStaticInit47bfae53c533fdd39ebb83bc6ae54952::$files;
|
||||
foreach ($includeFiles as $fileIdentifier => $file) {
|
||||
composerRequire65d054fe68de3e47c45de29f92f6f0ea($fileIdentifier, $file);
|
||||
composerRequire47bfae53c533fdd39ebb83bc6ae54952($fileIdentifier, $file);
|
||||
}
|
||||
|
||||
return $loader;
|
||||
|
@ -46,7 +46,7 @@ class ComposerAutoloaderInit65d054fe68de3e47c45de29f92f6f0ea
|
|||
* @param string $file
|
||||
* @return void
|
||||
*/
|
||||
function composerRequire65d054fe68de3e47c45de29f92f6f0ea($fileIdentifier, $file)
|
||||
function composerRequire47bfae53c533fdd39ebb83bc6ae54952($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 ComposerStaticInit65d054fe68de3e47c45de29f92f6f0ea
|
||||
class ComposerStaticInit47bfae53c533fdd39ebb83bc6ae54952
|
||||
{
|
||||
public static $files = array (
|
||||
'0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php',
|
||||
|
@ -3396,9 +3396,9 @@ class ComposerStaticInit65d054fe68de3e47c45de29f92f6f0ea
|
|||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit65d054fe68de3e47c45de29f92f6f0ea::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit65d054fe68de3e47c45de29f92f6f0ea::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit65d054fe68de3e47c45de29f92f6f0ea::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit47bfae53c533fdd39ebb83bc6ae54952::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit47bfae53c533fdd39ebb83bc6ae54952::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit47bfae53c533fdd39ebb83bc6ae54952::$classMap;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user