Skip to content

Commit

Permalink
Updated Rector to commit 9af763f23d4f12db2b18f0aa23afe08b082cb5f0
Browse files Browse the repository at this point in the history
rectorphp/rector-src@9af763f [Core] Improve performance of InlineHTMLAnalyzer: use findFirst instead of find all (#3448)
  • Loading branch information
TomasVotruba committed Mar 4, 2023
1 parent bc4d628 commit 3280541
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 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 = 'b2e90e8df6609979f068858c5912aba7e2d1ede3';
public const PACKAGE_VERSION = '9af763f23d4f12db2b18f0aa23afe08b082cb5f0';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-03-04 08:47:14';
public const RELEASE_DATE = '2023-03-04 08:47:29';
/**
* @var int
*/
Expand Down
4 changes: 2 additions & 2 deletions src/NodeAnalyzer/InlineHTMLAnalyzer.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ public function __construct(BetterNodeFinder $betterNodeFinder)
public function hasInlineHTML(Node $node) : bool
{
if ($node instanceof FunctionLike) {
return (bool) $this->betterNodeFinder->findInstanceOf((array) $node->getStmts(), InlineHTML::class);
return (bool) $this->betterNodeFinder->findFirstInstanceOf((array) $node->getStmts(), InlineHTML::class);
}
return (bool) $this->betterNodeFinder->findInstanceOf($node, InlineHTML::class);
return (bool) $this->betterNodeFinder->findFirstInstanceOf($node, InlineHTML::class);
}
}
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 ComposerAutoloaderInitf8c0438427ea358f45c5d867586b1c86::getLoader();
return ComposerAutoloaderInit7cecf9165bfaf37b01b5c5b71d11b34a::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 ComposerAutoloaderInitf8c0438427ea358f45c5d867586b1c86
class ComposerAutoloaderInit7cecf9165bfaf37b01b5c5b71d11b34a
{
private static $loader;

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

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

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

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

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

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

0 comments on commit 3280541

Please sign in to comment.