From 4f3333021597e6a6a1986da24127064695835d03 Mon Sep 17 00:00:00 2001 From: Matthew Brown Date: Fri, 22 May 2020 13:18:18 -0400 Subject: [PATCH] Add nullable type --- tests/Template/ConditionalReturnTypeTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Template/ConditionalReturnTypeTest.php b/tests/Template/ConditionalReturnTypeTest.php index 49c22624d..08a818499 100644 --- a/tests/Template/ConditionalReturnTypeTest.php +++ b/tests/Template/ConditionalReturnTypeTest.php @@ -481,7 +481,7 @@ class ConditionalReturnTypeTest extends TestCase /** * @psalm-return ($name is "foo" ? string : null) */ - function get(string $name) { + function get(string $name) : ?string { if ($name === "foo") { return "hello"; }