Skip to content

Commit e57d1c8

Browse files
committed
Updated Rector to commit 4997962de1f53c449dadbef7025bffe5ca41e63c
rectorphp/rector-src@4997962 Bump PHPStan to 2.1.38 (#7879)
1 parent 0f9c992 commit e57d1c8

File tree

5 files changed

+21
-6
lines changed

5 files changed

+21
-6
lines changed

vendor/composer/installed.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1818,12 +1818,12 @@
18181818
"source": {
18191819
"type": "git",
18201820
"url": "https:\/\/github.com\/rectorphp\/rector-phpunit.git",
1821-
"reference": "2f2e3dfd57626f31a1ec6d2ba76e11952d158282"
1821+
"reference": "f73e3378da838b801b632c4418ae5cc3363f228f"
18221822
},
18231823
"dist": {
18241824
"type": "zip",
1825-
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-phpunit\/zipball\/2f2e3dfd57626f31a1ec6d2ba76e11952d158282",
1826-
"reference": "2f2e3dfd57626f31a1ec6d2ba76e11952d158282",
1825+
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-phpunit\/zipball\/f73e3378da838b801b632c4418ae5cc3363f228f",
1826+
"reference": "f73e3378da838b801b632c4418ae5cc3363f228f",
18271827
"shasum": ""
18281828
},
18291829
"require": {
@@ -1850,7 +1850,7 @@
18501850
"tomasvotruba\/unused-public": "^2.2",
18511851
"tracy\/tracy": "^2.11"
18521852
},
1853-
"time": "2026-02-04T15:33:06+00:00",
1853+
"time": "2026-02-04T15:53:00+00:00",
18541854
"default-branch": true,
18551855
"type": "rector-extension",
18561856
"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 46e4f77'), '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 a110e2f'), '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 2f2e3df'), '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 eadb590'));
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 46e4f77'), '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 a110e2f'), '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 f73e337'), '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 eadb590'));
1313
private function __construct()
1414
{
1515
}

vendor/rector/rector-phpunit/rules/CodeQuality/NodeAnalyser/MockObjectExprDetector.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
namespace Rector\PHPUnit\CodeQuality\NodeAnalyser;
55

66
use PhpParser\Node\Expr;
7+
use PhpParser\Node\Expr\Array_;
78
use PhpParser\Node\Expr\CallLike;
89
use PhpParser\Node\Expr\MethodCall;
910
use PhpParser\Node\Expr\PropertyFetch;
@@ -113,6 +114,19 @@ public function isPropertyMockObjectPassedAsArgument(Class_ $class, string $prop
113114
}
114115
}
115116
}
117+
/** @var array<Array_> $arrays */
118+
$arrays = $this->betterNodeFinder->findInstancesOfScoped($class->getMethods(), [Array_::class]);
119+
foreach ($arrays as $array) {
120+
foreach ($array->items as $arrayItem) {
121+
if (!$arrayItem->value instanceof PropertyFetch) {
122+
continue;
123+
}
124+
$propertyFetch = $arrayItem->value;
125+
if ($this->nodeNameResolver->isName($propertyFetch->name, $propertyName)) {
126+
return \true;
127+
}
128+
}
129+
}
116130
return \false;
117131
}
118132
}

vendor/rector/rector-phpunit/rules/CodeQuality/Rector/Class_/RemoveNeverUsedMockPropertyRector.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ final class SomeTest extends TestCase
5353
protected function setUp(): void
5454
{
5555
$this->mockProperty = $this->createMock(SomeClass::class);
56+
5657
$this->mockProperty->expects($this->once())
5758
->method('someMethod')
5859
->willReturn('someValue');

0 commit comments

Comments
 (0)