mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-20 10:02:29 +00:00
Updated Rector to commit 3cbf7104d0b81ba1b930ce9a4cd3456e1c082b43
3cbf7104d0
[CodeQuality] Skip empty cases on SwitchTrueToIfRector (#3556)
This commit is contained in:
parent
d6c32e5651
commit
d7fe9b627b
|
@ -84,7 +84,10 @@ CODE_SAMPLE
|
|||
$newStmts[] = $if;
|
||||
}
|
||||
if ($defaultCase instanceof Case_) {
|
||||
return \array_merge($newStmts, $defaultCase->stmts);
|
||||
$newStmts = \array_merge($newStmts, $defaultCase->stmts);
|
||||
}
|
||||
if ($newStmts === []) {
|
||||
return null;
|
||||
}
|
||||
return $newStmts;
|
||||
}
|
||||
|
|
|
@ -19,12 +19,12 @@ final class VersionResolver
|
|||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = '4e2bef6d60eac79f3ccec9606bde2b22ecbe1dd0';
|
||||
public const PACKAGE_VERSION = '3cbf7104d0b81ba1b930ce9a4cd3456e1c082b43';
|
||||
/**
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2023-04-03 02:05:23';
|
||||
public const RELEASE_DATE = '2023-04-02 21:40:41';
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
|
|
2
vendor/autoload.php
vendored
2
vendor/autoload.php
vendored
|
@ -22,4 +22,4 @@ if (PHP_VERSION_ID < 50600) {
|
|||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInit9ec34674188d12db569da8d975deaadd::getLoader();
|
||||
return ComposerAutoloaderInit90b0a339f5e68da0f08b9e7390f4c7cd::getLoader();
|
||||
|
|
10
vendor/composer/autoload_real.php
vendored
10
vendor/composer/autoload_real.php
vendored
|
@ -2,7 +2,7 @@
|
|||
|
||||
// autoload_real.php @generated by Composer
|
||||
|
||||
class ComposerAutoloaderInit9ec34674188d12db569da8d975deaadd
|
||||
class ComposerAutoloaderInit90b0a339f5e68da0f08b9e7390f4c7cd
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
|
@ -22,17 +22,17 @@ class ComposerAutoloaderInit9ec34674188d12db569da8d975deaadd
|
|||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInit9ec34674188d12db569da8d975deaadd', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInit90b0a339f5e68da0f08b9e7390f4c7cd', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit9ec34674188d12db569da8d975deaadd', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit90b0a339f5e68da0f08b9e7390f4c7cd', 'loadClassLoader'));
|
||||
|
||||
require __DIR__ . '/autoload_static.php';
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit9ec34674188d12db569da8d975deaadd::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit90b0a339f5e68da0f08b9e7390f4c7cd::getInitializer($loader));
|
||||
|
||||
$loader->setClassMapAuthoritative(true);
|
||||
$loader->register(true);
|
||||
|
||||
$filesToLoad = \Composer\Autoload\ComposerStaticInit9ec34674188d12db569da8d975deaadd::$files;
|
||||
$filesToLoad = \Composer\Autoload\ComposerStaticInit90b0a339f5e68da0f08b9e7390f4c7cd::$files;
|
||||
$requireFile = \Closure::bind(static function ($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 ComposerStaticInit9ec34674188d12db569da8d975deaadd
|
||||
class ComposerStaticInit90b0a339f5e68da0f08b9e7390f4c7cd
|
||||
{
|
||||
public static $files = array (
|
||||
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
|
||||
|
@ -3130,9 +3130,9 @@ class ComposerStaticInit9ec34674188d12db569da8d975deaadd
|
|||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit9ec34674188d12db569da8d975deaadd::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit9ec34674188d12db569da8d975deaadd::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit9ec34674188d12db569da8d975deaadd::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit90b0a339f5e68da0f08b9e7390f4c7cd::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit90b0a339f5e68da0f08b9e7390f4c7cd::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit90b0a339f5e68da0f08b9e7390f4c7cd::$classMap;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user