From 778331143b181388a46cb1f70e923ec45b009b71 Mon Sep 17 00:00:00 2001 From: Gert de Pagter Date: Wed, 1 May 2019 19:42:29 +0200 Subject: [PATCH] Add a parent return type --- tests/Fixtures/CodeSamples/ReturnTypes.php | 10 ++++++++++ 1 file changed, 10 insertions(+) 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;