Skip to content

Commit 98eb819

Browse files
committed
Updated Rector to commit 57b37ca42ccb8d5754e0cac786e4c60ef7f044d9
rectorphp/rector-src@57b37ca [Php80] Skip property hook with indirect set on ClassPropertyAssignToConstructorPromotionRector (#7887)
1 parent 7733f45 commit 98eb819

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

rules/Php80/Rector/Class_/ClassPropertyAssignToConstructorPromotionRector.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,14 @@ private function isCallableTypeIdentifier(?Node $node): bool
308308
}
309309
private function shouldSkipPropertyOrParam(Property $property, Param $param): bool
310310
{
311+
foreach ($property->hooks as $hook) {
312+
if (!is_array($hook->body)) {
313+
continue;
314+
}
315+
if (count($hook->body) > 1) {
316+
return \true;
317+
}
318+
}
311319
return $property->type instanceof Node && $param->type instanceof Node && $property->hooks !== [] && !$this->nodeComparator->areNodesEqual($property->type, $param->type);
312320
}
313321
}

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 = 'aeadb608a7060c588b966c2a28d4480f105420d4';
22+
public const PACKAGE_VERSION = '57b37ca42ccb8d5754e0cac786e4c60ef7f044d9';
2323
/**
2424
* @api
2525
* @var string
2626
*/
27-
public const RELEASE_DATE = '2026-02-10 17:13:19';
27+
public const RELEASE_DATE = '2026-02-10 11:44:26';
2828
/**
2929
* @var int
3030
*/

0 commit comments

Comments
 (0)