Skip to content

Commit

Permalink
Updated Rector to commit 8bfaf450145e25e27e33e0ba2ead4c7348c6aa43
Browse files Browse the repository at this point in the history
rectorphp/rector-src@8bfaf45  [Php80] Mirror switch comment to match to ChangeSwitchToMatchRector  (#5072)
  • Loading branch information
TomasVotruba committed Sep 23, 2023
1 parent 718b62b commit 4b7d5cb
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 12 deletions.
2 changes: 2 additions & 0 deletions rules/Php80/Rector/Switch_/ChangeSwitchToMatchRector.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,13 +117,15 @@ public function refactor(Node $node) : ?Node
}
$assign = new Assign($assignVar, $match);
$node->stmts[$key] = new Expression($assign);
$this->mirrorComments($node->stmts[$key], $stmt);
$hasChanged = \true;
continue;
}
if (!$hasDefaultValue) {
continue;
}
$node->stmts[$key] = $isReturn ? new Return_($match) : new Expression($match);
$this->mirrorComments($node->stmts[$key], $stmt);
$hasChanged = \true;
}
if ($hasChanged) {
Expand Down
4 changes: 2 additions & 2 deletions src/Application/VersionResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = 'defd57b99b2f442199c6d4c63357e786d514253b';
public const PACKAGE_VERSION = '8bfaf450145e25e27e33e0ba2ead4c7348c6aa43';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-09-23 19:13:42';
public const RELEASE_DATE = '2023-09-23 20:16:20';
/**
* @var int
*/
Expand Down
2 changes: 1 addition & 1 deletion vendor/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@

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

return ComposerAutoloaderInitd407e2f3f81a0d536d980ea7b859f5cd::getLoader();
return ComposerAutoloaderInit31aad7819bdaeeef4048307cee73ad7b::getLoader();
10 changes: 5 additions & 5 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 ComposerAutoloaderInitd407e2f3f81a0d536d980ea7b859f5cd
class ComposerAutoloaderInit31aad7819bdaeeef4048307cee73ad7b
{
private static $loader;

Expand All @@ -22,17 +22,17 @@ public static function getLoader()
return self::$loader;
}

spl_autoload_register(array('ComposerAutoloaderInitd407e2f3f81a0d536d980ea7b859f5cd', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInit31aad7819bdaeeef4048307cee73ad7b', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
spl_autoload_unregister(array('ComposerAutoloaderInitd407e2f3f81a0d536d980ea7b859f5cd', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInit31aad7819bdaeeef4048307cee73ad7b', 'loadClassLoader'));

require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInitd407e2f3f81a0d536d980ea7b859f5cd::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInit31aad7819bdaeeef4048307cee73ad7b::getInitializer($loader));

$loader->setClassMapAuthoritative(true);
$loader->register(true);

$filesToLoad = \Composer\Autoload\ComposerStaticInitd407e2f3f81a0d536d980ea7b859f5cd::$files;
$filesToLoad = \Composer\Autoload\ComposerStaticInit31aad7819bdaeeef4048307cee73ad7b::$files;
$requireFile = \Closure::bind(static function ($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 ComposerStaticInitd407e2f3f81a0d536d980ea7b859f5cd
class ComposerStaticInit31aad7819bdaeeef4048307cee73ad7b
{
public static $files = array (
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
Expand Down Expand Up @@ -2601,9 +2601,9 @@ class ComposerStaticInitd407e2f3f81a0d536d980ea7b859f5cd
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInitd407e2f3f81a0d536d980ea7b859f5cd::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInitd407e2f3f81a0d536d980ea7b859f5cd::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInitd407e2f3f81a0d536d980ea7b859f5cd::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInit31aad7819bdaeeef4048307cee73ad7b::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit31aad7819bdaeeef4048307cee73ad7b::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit31aad7819bdaeeef4048307cee73ad7b::$classMap;

}, null, ClassLoader::class);
}
Expand Down

0 comments on commit 4b7d5cb

Please sign in to comment.