diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-01-07 15:06:36 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-02-17 11:51:09 +0100 |
commit | 43443857b74503246ee4ca25859b302ed0ebc078 (patch) | |
tree | c343eb388a2c3327d8d6d6895c63a8051cb44db9 /Zend/zend_execute.h | |
parent | d2ba8485721144dbb235d183a82e34d8bb1720eb (diff) | |
download | php-git-43443857b74503246ee4ca25859b302ed0ebc078.tar.gz |
Add static return type
RFC: https://wiki.php.net/rfc/static_return_type
The "static" type is represented as MAY_BE_STATIC, rather than
a class type like "self" and "parent", as it has special
resolution semantics, and cannot be cached in the runtime cache.
Closes GH-5062.
Diffstat (limited to 'Zend/zend_execute.h')
-rw-r--r-- | Zend/zend_execute.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Zend/zend_execute.h b/Zend/zend_execute.h index 44b48e914c..f29a5eb050 100644 --- a/Zend/zend_execute.h +++ b/Zend/zend_execute.h @@ -67,6 +67,8 @@ ZEND_API ZEND_COLD void zend_verify_arg_error( ZEND_API ZEND_COLD void zend_verify_return_error( const zend_function *zf, void **cache_slot, zval *value); ZEND_API zend_bool zend_verify_ref_array_assignable(zend_reference *ref); +ZEND_API zend_bool zend_value_instanceof_static(zval *zv); + #define ZEND_REF_TYPE_SOURCES(ref) \ (ref)->sources |