Skip to content

Commit

Permalink
Updated Rector to commit 3c7f2e8275e480d6555f8dd37316ea694d700774
Browse files Browse the repository at this point in the history
rectorphp/rector-src@3c7f2e8 [NodeManipulator] Improve IfManipulator::collectNestedIfsWithNonBreaking() performance (#3720)
  • Loading branch information
TomasVotruba committed May 1, 2023
1 parent 9b43f2b commit 38c5a7e
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 17 deletions.
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 = '0204a2353850c98a38dba36c9a8dd031ae2da0c3';
public const PACKAGE_VERSION = '3c7f2e8275e480d6555f8dd37316ea694d700774';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-05-01 19:10:12';
public const RELEASE_DATE = '2023-05-01 13:25:44';
/**
* @var int
*/
Expand Down
9 changes: 4 additions & 5 deletions src/NodeManipulator/IfManipulator.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,13 +175,12 @@ public function collectNestedIfsWithNonBreaking(Foreach_ $foreach) : array
if (!$this->isIfWithoutElseAndElseIfs($currentIf)) {
return [];
}
$betterNodeFinderFindInstanceOf = $this->betterNodeFinder->findInstanceOf($currentIf->stmts, Return_::class);
if ($betterNodeFinderFindInstanceOf !== []) {
$return = $this->betterNodeFinder->findFirstInstanceOf($currentIf->stmts, Return_::class);
if ($return instanceof Return_) {
return [];
}
/** @var Exit_[] $exits */
$exits = $this->betterNodeFinder->findInstanceOf($currentIf->stmts, Exit_::class);
if ($exits !== []) {
$exit = $this->betterNodeFinder->findFirstInstanceOf($currentIf->stmts, Exit_::class);
if ($exit instanceof Exit_) {
return [];
}
// last node is with the expression
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 ComposerAutoloaderInitb24069e0cf6ac04fa15ac0cf1e5399b6::getLoader();
return ComposerAutoloaderInit2d88f54e65d8af25b0f87fde040edc1f::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 ComposerAutoloaderInitb24069e0cf6ac04fa15ac0cf1e5399b6
class ComposerAutoloaderInit2d88f54e65d8af25b0f87fde040edc1f
{
private static $loader;

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

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

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

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

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

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

0 comments on commit 38c5a7e

Please sign in to comment.