File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
rules/TypeDeclaration/Rector/ClassMethod Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1818use 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'
You can’t perform that action at this time.
0 commit comments