Skip to content

Commit

Permalink
Updated Rector to commit 7729427f459ac348983ee18abff6024db59e9b4f
Browse files Browse the repository at this point in the history
rectorphp/rector-src@7729427 Few static error fixes (#6002)
  • Loading branch information
TomasVotruba committed Jun 22, 2024
1 parent 7e1af3a commit 02a1a1a
Show file tree
Hide file tree
Showing 7 changed files with 17 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 = '93bccca72e6a617d679bda6d49cdec76859b7d91';
public const PACKAGE_VERSION = '7729427f459ac348983ee18abff6024db59e9b4f';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2024-06-22 03:21:11';
public const RELEASE_DATE = '2024-06-22 01:44:06';
/**
* @var int
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ public function enterNode(Node $node) : ?Node
if (!$node instanceof IdentifierTypeNode) {
return null;
}
if (!$this->currentPhpParserNode instanceof PhpParserNode) {
throw new ShouldNotHappenException();
}
$staticType = $this->identifierTypeMapper->mapIdentifierTypeNode($node, $this->currentPhpParserNode);
if ($staticType instanceof ShortenedObjectType) {
$staticType = new FullyQualifiedObjectType($staticType->getFullyQualifiedName());
Expand All @@ -100,9 +103,6 @@ public function enterNode(Node $node) : ?Node
if (!$file instanceof File) {
return null;
}
if (!$this->currentPhpParserNode instanceof PhpParserNode) {
throw new ShouldNotHappenException();
}
return $this->processFqnNameImport($this->currentPhpParserNode, $node, $staticType, $file);
}
public function setCurrentNode(PhpParserNode $phpParserNode) : void
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
final class FileWithoutNamespaceNodeTraverser extends NodeTraverser
{
/**
* @template TNode as Node
* @template TNode as Node\Stmt
*
* @param TNode[] $nodes
* @return TNode[]|FileWithoutNamespace[]
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 ComposerAutoloaderInitf648ab75ee2d7b2c2cd586e971786e15::getLoader();
return ComposerAutoloaderInit90d89e44cc2773cc7ff67c7b5a267cf7::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 ComposerAutoloaderInitf648ab75ee2d7b2c2cd586e971786e15
class ComposerAutoloaderInit90d89e44cc2773cc7ff67c7b5a267cf7
{
private static $loader;

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

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

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

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

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

}, null, ClassLoader::class);
}
Expand Down
2 changes: 1 addition & 1 deletion vendor/scoper-autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function humbug_phpscoper_expose_class($exposed, $prefixed) {
}
}
humbug_phpscoper_expose_class('AutoloadIncluder', 'RectorPrefix202406\AutoloadIncluder');
humbug_phpscoper_expose_class('ComposerAutoloaderInitf648ab75ee2d7b2c2cd586e971786e15', 'RectorPrefix202406\ComposerAutoloaderInitf648ab75ee2d7b2c2cd586e971786e15');
humbug_phpscoper_expose_class('ComposerAutoloaderInit90d89e44cc2773cc7ff67c7b5a267cf7', 'RectorPrefix202406\ComposerAutoloaderInit90d89e44cc2773cc7ff67c7b5a267cf7');
humbug_phpscoper_expose_class('Product', 'RectorPrefix202406\Product');

// Function aliases. For more information see:
Expand Down

0 comments on commit 02a1a1a

Please sign in to comment.