summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMáté Kocsis <kocsismate@woohoolabs.com>2019-11-08 23:29:12 +0100
committerMáté Kocsis <kocsismate@woohoolabs.com>2019-11-11 14:54:55 +0100
commit27e83d0fb87c04b61441fb77e963dd4e14ad187e (patch)
tree1b35b21c48c54f353e643d29dd2306d8e1ba084a /scripts
parent2804ea612779b89d3c62d974eb35783dd31f7dee (diff)
downloadphp-git-27e83d0fb87c04b61441fb77e963dd4e14ad187e.tar.gz
Add union return types for function stubs
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/dev/gen_stub.php2
1 files changed, 2 insertions, 0 deletions
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":