Skip to content

Commit

Permalink
Updated Rector to commit e38909dbc086a70e5564e21d8af87aab9c1dc62d
Browse files Browse the repository at this point in the history
rectorphp/rector-src@e38909d Docblock fix on ShortNameResolver (#5077)
  • Loading branch information
TomasVotruba committed Sep 24, 2023
1 parent 9b44046 commit 452859f
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions rules/CodingStyle/ClassNameImport/ShortNameResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public function resolveFromFile(File $file) : array
public function resolveShortClassLikeNames(File $file) : array
{
$newStmts = $file->getNewStmts();
/** @var Namespace_[] $namespaces */
/** @var Namespace_[]|FileWithoutNamespace[] $namespaces */
$namespaces = \array_filter($newStmts, static function (Stmt $stmt) : bool {
return $stmt instanceof Namespace_ || $stmt instanceof FileWithoutNamespace;
});
Expand All @@ -109,7 +109,7 @@ public function resolveShortClassLikeNames(File $file) : array
}
$namespace = \current($namespaces);
/** @var ClassLike[] $classLikes */
$classLikes = $this->betterNodeFinder->findInstanceOf($namespace, ClassLike::class);
$classLikes = $this->betterNodeFinder->findInstanceOf($namespace->stmts, ClassLike::class);
$shortClassLikeNames = [];
foreach ($classLikes as $classLike) {
$shortClassLikeNames[] = $this->nodeNameResolver->getShortName($classLike);
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 = '4f199368893906bf5d9f89b936e97297888de463';
public const PACKAGE_VERSION = 'e38909dbc086a70e5564e21d8af87aab9c1dc62d';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-09-24 16:49:08';
public const RELEASE_DATE = '2023-09-24 17:03:15';
/**
* @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 ComposerAutoloaderInit635741106b572cb4bc1135212680fb0e::getLoader();
return ComposerAutoloaderInit83c677e729f90f318b811e46e01b4ae0::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 ComposerAutoloaderInit635741106b572cb4bc1135212680fb0e
class ComposerAutoloaderInit83c677e729f90f318b811e46e01b4ae0
{
private static $loader;

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

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

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

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

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

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

0 comments on commit 452859f

Please sign in to comment.