Skip to content

Commit

Permalink
Updated Rector to commit 29d9b7619d0d8bd68a62cc5ab3fcba5699a50558
Browse files Browse the repository at this point in the history
rectorphp/rector-src@29d9b76 [PHPStanStaticTypeMapper] Remove TypeKind::ANY (#4786)
  • Loading branch information
TomasVotruba committed Aug 14, 2023
1 parent 46d23a1 commit 34e7d4f
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 17 deletions.
4 changes: 0 additions & 4 deletions packages/PHPStanStaticTypeMapper/Enum/TypeKind.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,4 @@ final class TypeKind
* @var string
*/
public const PARAM = 'param';
/**
* @var string
*/
public const ANY = 'any';
}
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ private function resolvePropertyStaticTypesByParamName(ClassMethod $classMethod,
$exprType = $this->nodeTypeResolver->getNativeType($node->expr);
$nodeExprType = $this->staticTypeMapper->mapPHPStanTypeToPhpParserNode($exprType, TypeKind::PARAM);
$varType = $this->nodeTypeResolver->getNativeType($node->var);
$nodeVarType = $this->staticTypeMapper->mapPHPStanTypeToPhpParserNode($varType, TypeKind::ANY);
$nodeVarType = $this->staticTypeMapper->mapPHPStanTypeToPhpParserNode($varType, TypeKind::PROPERTY);
if ($nodeExprType instanceof Node && !$this->nodeComparator->areNodesEqual($nodeExprType, $nodeVarType)) {
return null;
}
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 = '00a51146a06566467292db72c8e231330c7e41d9';
public const PACKAGE_VERSION = '29d9b7619d0d8bd68a62cc5ab3fcba5699a50558';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-08-14 10:15:22';
public const RELEASE_DATE = '2023-08-14 09:20:19';
/**
* @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 ComposerAutoloaderInit21b54534f5fb8cd8d9c2ac7277d89990::getLoader();
return ComposerAutoloaderInita07abf28314c7bf3002ba4f505b67fe5::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 ComposerAutoloaderInit21b54534f5fb8cd8d9c2ac7277d89990
class ComposerAutoloaderInita07abf28314c7bf3002ba4f505b67fe5
{
private static $loader;

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

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

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

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

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

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

0 comments on commit 34e7d4f

Please sign in to comment.