Skip to content

Commit

Permalink
DowngradeSelfTypeDeclarationRector: Fix example output (#1606)
Browse files Browse the repository at this point in the history
  • Loading branch information
jtojnar committed Jan 1, 2022
1 parent fee8a47 commit b8a527c
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function getNodeTypes(): array
public function getRuleDefinition(): RuleDefinition
{
return new RuleDefinition(
'Remove "self" return type, add a "@return self" tag instead',
'Remove "self" return type, add a "@return $this" tag instead',
[
new CodeSample(
<<<'CODE_SAMPLE'
Expand All @@ -52,6 +52,9 @@ public function foo(): self
<<<'CODE_SAMPLE'
class SomeClass
{
/**
* @return $this
*/
public function foo()
{
return $this;
Expand Down

0 comments on commit b8a527c

Please sign in to comment.