Skip to content

Commit 1d7f092

Browse files
Update rules/Php85/Rector/Class_/FinalPropertyPromotionRector.php
Co-authored-by: Abdul Malik Ikhsan <samsonasik@gmail.com>
1 parent a68383b commit 1d7f092

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rules/Php85/Rector/Class_/FinalPropertyPromotionRector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function __construct(
3939

4040
public function getRuleDefinition(): RuleDefinition
4141
{
42-
return new RuleDefinition('Promotes constructor properties in final classes', [
42+
return new RuleDefinition('Add native final promoted properties in non-final class to avoid child to override the promoted properties based on `@final` tag', [
4343
new CodeSample(
4444
<<<'CODE_SAMPLE'
4545
public function __construct(

0 commit comments

Comments
 (0)