diff --git a/tests/Fixtures/CodeSamples/ReturnTypes.php b/tests/Fixtures/CodeSamples/ReturnTypes.php index dadb72c229..57436edd7f 100644 --- a/tests/Fixtures/CodeSamples/ReturnTypes.php +++ b/tests/Fixtures/CodeSamples/ReturnTypes.php @@ -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;