Skip to content

Commit 8457889

Browse files
committed
Updated Rector to commit efef8aca6e7aaf688759cd09b48c64990adbfb53
rectorphp/rector-src@efef8ac [Php81] Skip property hook on ReadOnlyPropertyRector (#6758)
1 parent e21184b commit 8457889

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

rules/Php81/Rector/Property/ReadOnlyPropertyRector.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,9 @@ private function refactorProperty(Class_ $class, Property $property, Scope $scop
161161
if ($property->isReadonly()) {
162162
return null;
163163
}
164+
if ($property->hooks !== []) {
165+
return null;
166+
}
164167
if ($property->props[0]->default instanceof Expr) {
165168
return null;
166169
}

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 = '008cae39b4b99b7f60035a214a88553b0a6be5e2';
22+
public const PACKAGE_VERSION = 'efef8aca6e7aaf688759cd09b48c64990adbfb53';
2323
/**
2424
* @api
2525
* @var string
2626
*/
27-
public const RELEASE_DATE = '2025-02-25 12:42:12';
27+
public const RELEASE_DATE = '2025-02-28 19:24:23';
2828
/**
2929
* @var int
3030
*/

0 commit comments

Comments
 (0)