Skip to content

Commit

Permalink
Add a parent return type
Browse files Browse the repository at this point in the history
  • Loading branch information
BackEndTea committed May 1, 2019
1 parent 4b70257 commit ff62bc9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/Fixtures/CodeSamples/ReturnTypes.php
Expand Up @@ -34,6 +34,16 @@ public function selfReturnWithoutReturnType()
return $this;
}

public function parentReturn(): parent
{
return $this;
}

public function nullableParentReturn(): ?parent
{
return $this;
}

public function withNewerReturnType(): object
{
return $this;
Expand Down

0 comments on commit ff62bc9

Please sign in to comment.