From 27db90dd1e8fe3b5833ce6b3c11a89c1495aa133 Mon Sep 17 00:00:00 2001 From: Matt Brown Date: Mon, 8 Jan 2018 18:30:30 -0500 Subject: [PATCH] Fix bad fix --- src/Psalm/Type/Union.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Psalm/Type/Union.php b/src/Psalm/Type/Union.php index 8213cef12..e3231b451 100644 --- a/src/Psalm/Type/Union.php +++ b/src/Psalm/Type/Union.php @@ -149,7 +149,7 @@ class Union $nullable = true; } - if ($types) { + if (!$types) { return null; }