From 27e83d0fb87c04b61441fb77e963dd4e14ad187e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1t=C3=A9=20Kocsis?= Date: Fri, 8 Nov 2019 23:29:12 +0100 Subject: Add union return types for function stubs --- scripts/dev/gen_stub.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scripts') diff --git a/scripts/dev/gen_stub.php b/scripts/dev/gen_stub.php index 2aed71af61..a02e23b256 100755 --- a/scripts/dev/gen_stub.php +++ b/scripts/dev/gen_stub.php @@ -108,6 +108,8 @@ class SimpleType { public function toTypeMask() { assert($this->isBuiltin); switch (strtolower($this->name)) { + case "null": + return "MAY_BE_NULL"; case "false": return "MAY_BE_FALSE"; case "bool": -- cgit v1.2.1