Skip to content

Commit f759f00

Browse files
committed
Updated Rector to commit 5aba21fa9d88bbaaf63b1d206dfceac184628690
rectorphp/rector-src@5aba21f [Deps] Bump to PHPStan ^2.1.32 and fix test (#7622)
1 parent 2c3da2b commit f759f00

File tree

16 files changed

+40
-32
lines changed

16 files changed

+40
-32
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
],
1010
"require": {
1111
"php": "^7.4|^8.0",
12-
"phpstan/phpstan": "^2.1.31"
12+
"phpstan/phpstan": "^2.1.32"
1313
},
1414
"autoload": {
1515
"files": [

src/Application/VersionResolver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ final class VersionResolver
1919
* @api
2020
* @var string
2121
*/
22-
public const PACKAGE_VERSION = '1a19a3450852b3e048689560e8ddc95d12e28863';
22+
public const PACKAGE_VERSION = '5aba21fa9d88bbaaf63b1d206dfceac184628690';
2323
/**
2424
* @api
2525
* @var string
2626
*/
27-
public const RELEASE_DATE = '2025-11-11 12:22:54';
27+
public const RELEASE_DATE = '2025-11-13 01:29:33';
2828
/**
2929
* @var int
3030
*/

src/NodeAnalyzer/PropertyFetchAnalyzer.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
use PhpParser\Node\Stmt\Trait_;
2020
use PHPStan\Reflection\ClassReflection;
2121
use PHPStan\Type\ObjectType;
22+
use PHPStan\Type\StaticType;
2223
use PHPStan\Type\ThisType;
2324
use Rector\Enum\ObjectReference;
2425
use Rector\NodeNameResolver\NodeNameResolver;
@@ -73,6 +74,12 @@ public function isLocalPropertyFetch(Node $node): bool
7374
return \false;
7475
}
7576
$variableType = $node instanceof StaticPropertyFetch ? $this->nodeTypeResolver->getType($node->class) : $this->nodeTypeResolver->getType($node->var);
77+
// patch clone usage
78+
// @see https://github.com/phpstan/phpstan-src/commit/020adb548011c098cdb2e061019346b0a838c6a4
79+
// @see https://github.com/rectorphp/rector-src/pull/7622
80+
if ($variableType instanceof StaticType && !$variableType instanceof ThisType) {
81+
$variableType = $variableType->getStaticObjectType();
82+
}
7683
if ($variableType instanceof ObjectType) {
7784
$classReflection = $this->reflectionResolver->resolveClassReflection($node);
7885
if ($classReflection instanceof ClassReflection) {

vendor/autoload.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@
1919

2020
require_once __DIR__ . '/composer/autoload_real.php';
2121

22-
return ComposerAutoloaderInit5aaa317fb889359e4f26fc1675fc6a8d::getLoader();
22+
return ComposerAutoloaderInit3c3c60267d78014b1515949c3dda719b::getLoader();

vendor/composer/autoload_real.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
// autoload_real.php @generated by Composer
44

5-
class ComposerAutoloaderInit5aaa317fb889359e4f26fc1675fc6a8d
5+
class ComposerAutoloaderInit3c3c60267d78014b1515949c3dda719b
66
{
77
private static $loader;
88

@@ -22,17 +22,17 @@ public static function getLoader()
2222
return self::$loader;
2323
}
2424

25-
spl_autoload_register(array('ComposerAutoloaderInit5aaa317fb889359e4f26fc1675fc6a8d', 'loadClassLoader'), true, true);
25+
spl_autoload_register(array('ComposerAutoloaderInit3c3c60267d78014b1515949c3dda719b', 'loadClassLoader'), true, true);
2626
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
27-
spl_autoload_unregister(array('ComposerAutoloaderInit5aaa317fb889359e4f26fc1675fc6a8d', 'loadClassLoader'));
27+
spl_autoload_unregister(array('ComposerAutoloaderInit3c3c60267d78014b1515949c3dda719b', 'loadClassLoader'));
2828

2929
require __DIR__ . '/autoload_static.php';
30-
call_user_func(\Composer\Autoload\ComposerStaticInit5aaa317fb889359e4f26fc1675fc6a8d::getInitializer($loader));
30+
call_user_func(\Composer\Autoload\ComposerStaticInit3c3c60267d78014b1515949c3dda719b::getInitializer($loader));
3131

3232
$loader->setClassMapAuthoritative(true);
3333
$loader->register(true);
3434

35-
$filesToLoad = \Composer\Autoload\ComposerStaticInit5aaa317fb889359e4f26fc1675fc6a8d::$files;
35+
$filesToLoad = \Composer\Autoload\ComposerStaticInit3c3c60267d78014b1515949c3dda719b::$files;
3636
$requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
3737
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
3838
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;

vendor/composer/autoload_static.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace Composer\Autoload;
66

7-
class ComposerStaticInit5aaa317fb889359e4f26fc1675fc6a8d
7+
class ComposerStaticInit3c3c60267d78014b1515949c3dda719b
88
{
99
public static $files = array (
1010
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
@@ -3170,9 +3170,9 @@ class ComposerStaticInit5aaa317fb889359e4f26fc1675fc6a8d
31703170
public static function getInitializer(ClassLoader $loader)
31713171
{
31723172
return \Closure::bind(function () use ($loader) {
3173-
$loader->prefixLengthsPsr4 = ComposerStaticInit5aaa317fb889359e4f26fc1675fc6a8d::$prefixLengthsPsr4;
3174-
$loader->prefixDirsPsr4 = ComposerStaticInit5aaa317fb889359e4f26fc1675fc6a8d::$prefixDirsPsr4;
3175-
$loader->classMap = ComposerStaticInit5aaa317fb889359e4f26fc1675fc6a8d::$classMap;
3173+
$loader->prefixLengthsPsr4 = ComposerStaticInit3c3c60267d78014b1515949c3dda719b::$prefixLengthsPsr4;
3174+
$loader->prefixDirsPsr4 = ComposerStaticInit3c3c60267d78014b1515949c3dda719b::$prefixDirsPsr4;
3175+
$loader->classMap = ComposerStaticInit3c3c60267d78014b1515949c3dda719b::$classMap;
31763176

31773177
}, null, ClassLoader::class);
31783178
}

vendor/composer/installed.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1745,20 +1745,20 @@
17451745
"source": {
17461746
"type": "git",
17471747
"url": "https:\/\/github.com\/rectorphp\/rector-downgrade-php.git",
1748-
"reference": "c2349bd92b77ce3052ab5548e2168615a651fa52"
1748+
"reference": "c03373abd0d6995b83292547ffb4965dea82fd96"
17491749
},
17501750
"dist": {
17511751
"type": "zip",
1752-
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-downgrade-php\/zipball\/c2349bd92b77ce3052ab5548e2168615a651fa52",
1753-
"reference": "c2349bd92b77ce3052ab5548e2168615a651fa52",
1752+
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-downgrade-php\/zipball\/c03373abd0d6995b83292547ffb4965dea82fd96",
1753+
"reference": "c03373abd0d6995b83292547ffb4965dea82fd96",
17541754
"shasum": ""
17551755
},
17561756
"require": {
17571757
"php": ">=8.2"
17581758
},
17591759
"require-dev": {
17601760
"phpstan\/extension-installer": "^1.3",
1761-
"phpstan\/phpstan": "^2.1.30",
1761+
"phpstan\/phpstan": "^2.1.32",
17621762
"phpstan\/phpstan-webmozart-assert": "^2.0",
17631763
"phpunit\/phpunit": "^11.5",
17641764
"rector\/rector-src": "dev-main",
@@ -1768,7 +1768,7 @@
17681768
"tomasvotruba\/class-leak": "^1.0",
17691769
"tracy\/tracy": "^2.10"
17701770
},
1771-
"time": "2025-10-25T15:32:04+00:00",
1771+
"time": "2025-11-12T17:02:18+00:00",
17721772
"default-branch": true,
17731773
"type": "rector-extension",
17741774
"extra": {
@@ -1861,12 +1861,12 @@
18611861
"source": {
18621862
"type": "git",
18631863
"url": "https:\/\/github.com\/rectorphp\/rector-symfony.git",
1864-
"reference": "65b31d69a4ad77ab42e4fb8f077472df4650cdde"
1864+
"reference": "290b5c724d9c3072ec4a63b354542497ba80bff7"
18651865
},
18661866
"dist": {
18671867
"type": "zip",
1868-
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-symfony\/zipball\/65b31d69a4ad77ab42e4fb8f077472df4650cdde",
1869-
"reference": "65b31d69a4ad77ab42e4fb8f077472df4650cdde",
1868+
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-symfony\/zipball\/290b5c724d9c3072ec4a63b354542497ba80bff7",
1869+
"reference": "290b5c724d9c3072ec4a63b354542497ba80bff7",
18701870
"shasum": ""
18711871
},
18721872
"require": {
@@ -1876,7 +1876,7 @@
18761876
"require-dev": {
18771877
"phpecs\/phpecs": "^2.2",
18781878
"phpstan\/extension-installer": "^1.4",
1879-
"phpstan\/phpstan": "^2.1.31",
1879+
"phpstan\/phpstan": "^2.1.32",
18801880
"phpstan\/phpstan-webmozart-assert": "^2.0",
18811881
"phpunit\/phpunit": "^11.5",
18821882
"rector\/jack": "^0.2.9",
@@ -1898,7 +1898,7 @@
18981898
"tomasvotruba\/unused-public": "^2.0",
18991899
"tracy\/tracy": "^2.10"
19001900
},
1901-
"time": "2025-11-08T18:54:17+00:00",
1901+
"time": "2025-11-12T17:58:35+00:00",
19021902
"default-branch": true,
19031903
"type": "rector-extension",
19041904
"extra": {

0 commit comments

Comments
 (0)