From f44ed22063b277346b3a90a851164fa792932246 Mon Sep 17 00:00:00 2001 From: Matthew Brown Date: Mon, 8 Jan 2018 20:12:24 -0500 Subject: [PATCH] Fix null return --- 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 6fcb99c94..0e39e00d5 100644 --- a/src/Psalm/Type/Union.php +++ b/src/Psalm/Type/Union.php @@ -191,7 +191,7 @@ class Union } if (!$types) { - return null; + return false; } $atomic_type = array_values($types)[0];