Skip to content

Commit c0b306a

Browse files
update description
1 parent 6a97474 commit c0b306a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rules/TypeDeclaration/Rector/ClassMethod/NarrowObjectReturnTypeRector.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
use Symplify\RuleDocGenerator\ValueObject\RuleDefinition;
1919

2020
/**
21-
* Narrows return types from generic object or parent class to specific class.
21+
* Narrows return type from generic object to specific class in final classes/methods.
2222
*
2323
* @see \Rector\Tests\TypeDeclaration\Rector\ClassMethod\NarrowObjectReturnTypeRector\NarrowObjectReturnTypeRectorTest
2424
*/
@@ -34,7 +34,7 @@ public function __construct(
3434
public function getRuleDefinition(): RuleDefinition
3535
{
3636
return new RuleDefinition(
37-
'Narrows return type from generic object or parent class to specific class',
37+
'Narrows return type from generic object to specific class in final classes/methods',
3838
[
3939
new CodeSample(
4040
<<<'CODE_SAMPLE'

0 commit comments

Comments
 (0)