Skip to content

Commit 9590def

Browse files
committed
chore: enable ClassPropertyAssignToConstructorPromotionRector to the extent that existing product codes are not broken
1 parent 4d246c6 commit 9590def

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

rector.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,17 @@
123123
SimplifyRegexPatternRector::class,
124124

125125
// PHP 8.0 features but cause breaking changes
126-
ClassPropertyAssignToConstructorPromotionRector::class,
126+
ClassPropertyAssignToConstructorPromotionRector::class => [
127+
__DIR__ . '/system/Database/BaseResult.php',
128+
__DIR__ . '/system/Database/RawSql.php',
129+
__DIR__ . '/system/Debug/BaseExceptionHandler.php',
130+
__DIR__ . '/system/Filters/Filters.php',
131+
__DIR__ . '/system/HTTP/CURLRequest.php',
132+
__DIR__ . '/system/HTTP/DownloadResponse.php',
133+
__DIR__ . '/system/HTTP/IncomingRequest.php',
134+
__DIR__ . '/system/Security/Security.php',
135+
__DIR__ . '/system/Session/Session.php',
136+
],
127137
MixedTypeRector::class,
128138

129139
// PHP 8.1 features but cause breaking changes

0 commit comments

Comments
 (0)