diff options
author | Máté Kocsis <kocsismate@woohoolabs.com> | 2019-11-08 23:29:12 +0100 |
---|---|---|
committer | Máté Kocsis <kocsismate@woohoolabs.com> | 2019-11-11 14:54:55 +0100 |
commit | 27e83d0fb87c04b61441fb77e963dd4e14ad187e (patch) | |
tree | 1b35b21c48c54f353e643d29dd2306d8e1ba084a /scripts/dev/gen_stub.php | |
parent | 2804ea612779b89d3c62d974eb35783dd31f7dee (diff) | |
download | php-git-27e83d0fb87c04b61441fb77e963dd4e14ad187e.tar.gz |
Add union return types for function stubs
Diffstat (limited to 'scripts/dev/gen_stub.php')
-rwxr-xr-x | scripts/dev/gen_stub.php | 2 |
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": |