Skip to content

Commit

Permalink
Updated Rector to commit 3c34abb42a46a7e1f49dbef49e72dc49850a5dd2
Browse files Browse the repository at this point in the history
rectorphp/rector-src@3c34abb Skip not natively typed property in AddParamTypeFromPropertyTypeRector (#3421)
  • Loading branch information
TomasVotruba committed Feb 27, 2023
1 parent d72ba9e commit bc68a7b
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,9 @@ private function resolvePropertyStaticTypesByParamName(ClassMethod $classMethod,
if (!$this->propertyFetchAnalyzer->isVariableAssignToThisPropertyFetch($node, $paramName)) {
return null;
}
$exprType = $this->nodeTypeResolver->getType($node->expr);
$exprType = $this->nodeTypeResolver->getNativeType($node->expr);
$nodeExprType = $this->staticTypeMapper->mapPHPStanTypeToPhpParserNode($exprType, TypeKind::PARAM);
$varType = $this->nodeTypeResolver->getType($node->var);
$varType = $this->nodeTypeResolver->getNativeType($node->var);
$nodeVarType = $this->staticTypeMapper->mapPHPStanTypeToPhpParserNode($varType, TypeKind::ANY);
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 = '9cf87f6ac68f0386a27e2892d832ee113ffcc642';
public const PACKAGE_VERSION = '3c34abb42a46a7e1f49dbef49e72dc49850a5dd2';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-02-27 00:04:07';
public const RELEASE_DATE = '2023-02-27 09:31:58';
/**
* @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 ComposerAutoloaderInit2c3dae2e56f4c6f7d9c1ac9aa83f06ff::getLoader();
return ComposerAutoloaderInit28e9520b6a3aa8006872a6d8548ed0fa::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 ComposerAutoloaderInit2c3dae2e56f4c6f7d9c1ac9aa83f06ff
class ComposerAutoloaderInit28e9520b6a3aa8006872a6d8548ed0fa
{
private static $loader;

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

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

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

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

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

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

0 comments on commit bc68a7b

Please sign in to comment.