Updated Rector to commit 1f8d359d731ec0ecd4f92320626e74d2e1b41d05

1f8d359d73 [automated] Re-Generate Nodes/Rectors Documentation (#3549)
This commit is contained in:
Tomas Votruba 2023-04-02 00:33:26 +00:00
parent 77c06429df
commit c04c8097dc
5 changed files with 50 additions and 14 deletions

View File

@ -1,4 +1,4 @@
# 413 Rules Overview
# 414 Rules Overview
<br>
@ -6,7 +6,7 @@
- [Arguments](#arguments) (5)
- [CodeQuality](#codequality) (78)
- [CodeQuality](#codequality) (79)
- [CodingStyle](#codingstyle) (39)
@ -1682,6 +1682,42 @@ Switch negated ternary condition rector
<br>
### SwitchTrueToIfRector
Change switch (true) to if statements
- class: [`Rector\CodeQuality\Rector\Switch_\SwitchTrueToIfRector`](../rules/CodeQuality/Rector/Switch_/SwitchTrueToIfRector.php)
```diff
class SomeClass
{
public function run()
{
- switch (true) {
- case $value === 0:
- return 'no';
- case $value === 1:
- return 'yes';
- case $value === 2:
- return 'maybe';
- };
+ if ($value === 0) {
+ return 'no';
+ }
+
+ if ($value === 1) {
+ return 'yes';
+ }
+
+ if ($value === 2) {
+ return 'maybe';
+ }
}
}
```
<br>
### TernaryEmptyArrayArrayDimFetchToCoalesceRector
Change ternary empty on array property with array dim fetch to coalesce operator

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '53f549df59999185aba90f5043982dec1973d230';
public const PACKAGE_VERSION = '1f8d359d731ec0ecd4f92320626e74d2e1b41d05';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-04-01 20:26:01';
public const RELEASE_DATE = '2023-04-02 00:29:29';
/**
* @var int
*/

2
vendor/autoload.php vendored
View File

@ -22,4 +22,4 @@ if (PHP_VERSION_ID < 50600) {
require_once __DIR__ . '/composer/autoload_real.php';
return ComposerAutoloaderInitb0d35224fea6088630cb7d3bacad91ef::getLoader();
return ComposerAutoloaderInit0c0fc61f84b93f1888d712a06ac764f1::getLoader();

View File

@ -2,7 +2,7 @@
// autoload_real.php @generated by Composer
class ComposerAutoloaderInitb0d35224fea6088630cb7d3bacad91ef
class ComposerAutoloaderInit0c0fc61f84b93f1888d712a06ac764f1
{
private static $loader;
@ -22,17 +22,17 @@ class ComposerAutoloaderInitb0d35224fea6088630cb7d3bacad91ef
return self::$loader;
}
spl_autoload_register(array('ComposerAutoloaderInitb0d35224fea6088630cb7d3bacad91ef', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInit0c0fc61f84b93f1888d712a06ac764f1', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
spl_autoload_unregister(array('ComposerAutoloaderInitb0d35224fea6088630cb7d3bacad91ef', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInit0c0fc61f84b93f1888d712a06ac764f1', 'loadClassLoader'));
require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInitb0d35224fea6088630cb7d3bacad91ef::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInit0c0fc61f84b93f1888d712a06ac764f1::getInitializer($loader));
$loader->setClassMapAuthoritative(true);
$loader->register(true);
$filesToLoad = \Composer\Autoload\ComposerStaticInitb0d35224fea6088630cb7d3bacad91ef::$files;
$filesToLoad = \Composer\Autoload\ComposerStaticInit0c0fc61f84b93f1888d712a06ac764f1::$files;
$requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;

View File

@ -4,7 +4,7 @@
namespace Composer\Autoload;
class ComposerStaticInitb0d35224fea6088630cb7d3bacad91ef
class ComposerStaticInit0c0fc61f84b93f1888d712a06ac764f1
{
public static $files = array (
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
@ -3130,9 +3130,9 @@ class ComposerStaticInitb0d35224fea6088630cb7d3bacad91ef
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInitb0d35224fea6088630cb7d3bacad91ef::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInitb0d35224fea6088630cb7d3bacad91ef::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInitb0d35224fea6088630cb7d3bacad91ef::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInit0c0fc61f84b93f1888d712a06ac764f1::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit0c0fc61f84b93f1888d712a06ac764f1::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit0c0fc61f84b93f1888d712a06ac764f1::$classMap;
}, null, ClassLoader::class);
}