Skip to content

Commit b727006

Browse files
committed
Updated Rector to commit 3a3942b2796f878704949f6adbbc7c23db1186d4
rectorphp/rector-src@3a3942b Bump PHPStan to ^2.1.41 (#7932)
1 parent 39640ba commit b727006

11 files changed

Lines changed: 21 additions & 24 deletions

File tree

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.40"
12+
"phpstan/phpstan": "^2.1.41"
1313
},
1414
"autoload": {
1515
"files": [

rules/DeadCode/Rector/FunctionLike/NarrowWideUnionReturnTypeRector.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
use Rector\VersionBonding\Contract\MinPhpVersionInterface;
3535
use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample;
3636
use Symplify\RuleDocGenerator\ValueObject\RuleDefinition;
37-
use RectorPrefix202603\Webmozart\Assert\Assert;
3837
/**
3938
* @see \Rector\Tests\DeadCode\Rector\FunctionLike\NarrowWideUnionReturnTypeRector\NarrowWideUnionReturnTypeRectorTest
4039
*/
@@ -135,8 +134,8 @@ public function refactor(Node $node): ?Node
135134
return null;
136135
}
137136
$hasImplicitNullReturn = $this->silentVoidResolver->hasSilentVoid($node) || $this->hasImplicitNullReturn($returnStatements);
137+
/** @var UnionType|NullableType $returnType */
138138
$returnType = $node->returnType;
139-
Assert::isInstanceOfAny($returnType, [UnionType::class, NullableType::class]);
140139
$returnType = $this->staticTypeMapper->mapPhpParserNodePHPStanType($returnType);
141140
$actualReturnTypes = $this->collectActualReturnTypes($returnStatements);
142141
if ($hasImplicitNullReturn) {

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 = '16136f702678b0c4b802db3942726964bfb17523';
22+
public const PACKAGE_VERSION = '3a3942b2796f878704949f6adbbc7c23db1186d4';
2323
/**
2424
* @api
2525
* @var string
2626
*/
27-
public const RELEASE_DATE = '2026-03-16 17:05:56';
27+
public const RELEASE_DATE = '2026-03-17 17:46:42';
2828
/**
2929
* @var int
3030
*/

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 ComposerAutoloaderInitb27afa3b28f0dbd33d77e76beab014f6::getLoader();
22+
return ComposerAutoloaderInitc9819cb6f85619d8e1cbb4426044dd33::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 ComposerAutoloaderInitb27afa3b28f0dbd33d77e76beab014f6
5+
class ComposerAutoloaderInitc9819cb6f85619d8e1cbb4426044dd33
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('ComposerAutoloaderInitb27afa3b28f0dbd33d77e76beab014f6', 'loadClassLoader'), true, true);
25+
spl_autoload_register(array('ComposerAutoloaderInitc9819cb6f85619d8e1cbb4426044dd33', 'loadClassLoader'), true, true);
2626
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
27-
spl_autoload_unregister(array('ComposerAutoloaderInitb27afa3b28f0dbd33d77e76beab014f6', 'loadClassLoader'));
27+
spl_autoload_unregister(array('ComposerAutoloaderInitc9819cb6f85619d8e1cbb4426044dd33', 'loadClassLoader'));
2828

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

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

35-
$filesToLoad = \Composer\Autoload\ComposerStaticInitb27afa3b28f0dbd33d77e76beab014f6::$files;
35+
$filesToLoad = \Composer\Autoload\ComposerStaticInitc9819cb6f85619d8e1cbb4426044dd33::$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 ComposerStaticInitb27afa3b28f0dbd33d77e76beab014f6
7+
class ComposerStaticInitc9819cb6f85619d8e1cbb4426044dd33
88
{
99
public static $files = array (
1010
'6e3fae29631ef280660b3cdad06f25a8' => __DIR__ . '/..' . '/symfony/deprecation-contracts/function.php',
@@ -3262,9 +3262,9 @@ class ComposerStaticInitb27afa3b28f0dbd33d77e76beab014f6
32623262
public static function getInitializer(ClassLoader $loader)
32633263
{
32643264
return \Closure::bind(function () use ($loader) {
3265-
$loader->prefixLengthsPsr4 = ComposerStaticInitb27afa3b28f0dbd33d77e76beab014f6::$prefixLengthsPsr4;
3266-
$loader->prefixDirsPsr4 = ComposerStaticInitb27afa3b28f0dbd33d77e76beab014f6::$prefixDirsPsr4;
3267-
$loader->classMap = ComposerStaticInitb27afa3b28f0dbd33d77e76beab014f6::$classMap;
3265+
$loader->prefixLengthsPsr4 = ComposerStaticInitc9819cb6f85619d8e1cbb4426044dd33::$prefixLengthsPsr4;
3266+
$loader->prefixDirsPsr4 = ComposerStaticInitc9819cb6f85619d8e1cbb4426044dd33::$prefixDirsPsr4;
3267+
$loader->classMap = ComposerStaticInitc9819cb6f85619d8e1cbb4426044dd33::$classMap;
32683268

32693269
}, null, ClassLoader::class);
32703270
}

vendor/composer/installed.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1820,12 +1820,12 @@
18201820
"source": {
18211821
"type": "git",
18221822
"url": "https:\/\/github.com\/rectorphp\/rector-phpunit.git",
1823-
"reference": "c87ef427027866bdf9c05e2fcd60e09e6b171e2f"
1823+
"reference": "b66ce7ef322ff1cf09a923d662e7bd2ab4b25929"
18241824
},
18251825
"dist": {
18261826
"type": "zip",
1827-
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-phpunit\/zipball\/c87ef427027866bdf9c05e2fcd60e09e6b171e2f",
1828-
"reference": "c87ef427027866bdf9c05e2fcd60e09e6b171e2f",
1827+
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-phpunit\/zipball\/b66ce7ef322ff1cf09a923d662e7bd2ab4b25929",
1828+
"reference": "b66ce7ef322ff1cf09a923d662e7bd2ab4b25929",
18291829
"shasum": ""
18301830
},
18311831
"require": {
@@ -1852,7 +1852,7 @@
18521852
"tomasvotruba\/unused-public": "^2.2",
18531853
"tracy\/tracy": "^2.11"
18541854
},
1855-
"time": "2026-03-12T08:57:58+00:00",
1855+
"time": "2026-03-16T21:16:22+00:00",
18561856
"default-branch": true,
18571857
"type": "rector-extension",
18581858
"extra": {

vendor/composer/installed.php

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

vendor/rector/extension-installer/src/GeneratedConfig.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*/
1010
final class GeneratedConfig
1111
{
12-
public const EXTENSIONS = array('rector/rector-doctrine' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-doctrine', 'relative_install_path' => '../../rector-doctrine', 'extra' => NULL, 'version' => 'dev-main 7da017c'), 'rector/rector-downgrade-php' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-downgrade-php', 'relative_install_path' => '../../rector-downgrade-php', 'extra' => NULL, 'version' => 'dev-main 8c5e9e1'), 'rector/rector-phpunit' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-phpunit', 'relative_install_path' => '../../rector-phpunit', 'extra' => NULL, 'version' => 'dev-main c87ef42'), 'rector/rector-symfony' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-symfony', 'relative_install_path' => '../../rector-symfony', 'extra' => NULL, 'version' => 'dev-main cfa7148'));
12+
public const EXTENSIONS = array('rector/rector-doctrine' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-doctrine', 'relative_install_path' => '../../rector-doctrine', 'extra' => NULL, 'version' => 'dev-main 7da017c'), 'rector/rector-downgrade-php' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-downgrade-php', 'relative_install_path' => '../../rector-downgrade-php', 'extra' => NULL, 'version' => 'dev-main 8c5e9e1'), 'rector/rector-phpunit' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-phpunit', 'relative_install_path' => '../../rector-phpunit', 'extra' => NULL, 'version' => 'dev-main b66ce7e'), 'rector/rector-symfony' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-symfony', 'relative_install_path' => '../../rector-symfony', 'extra' => NULL, 'version' => 'dev-main cfa7148'));
1313
private function __construct()
1414
{
1515
}

vendor/rector/rector-phpunit/rules/CodeQuality/Rector/Expression/ConfiguredMockEntityToSetterObjectRector.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
use Rector\Rector\AbstractRector;
2626
use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample;
2727
use Symplify\RuleDocGenerator\ValueObject\RuleDefinition;
28-
use RectorPrefix202603\Webmozart\Assert\Assert;
2928
/**
3029
* @see \Rector\PHPUnit\Tests\CodeQuality\Rector\Expression\ConfiguredMockEntityToSetterObjectRector\ConfiguredMockEntityToSetterObjectRectorTest
3130
*/
@@ -138,7 +137,6 @@ public function refactor(Node $node): ?array
138137
return null;
139138
}
140139
if ($node instanceof Expression) {
141-
Assert::isInstanceOf($assign, Assign::class);
142140
return $this->createForAssign($doctrineClass, $assign, $definedGettersArg->value, $node);
143141
}
144142
return $this->createForReturn($doctrineClass, $definedGettersArg->value, $node);

0 commit comments

Comments
 (0)