diff --git a/yac.stub.php b/yac.stub.php index 3df7ef0..3cd07aa 100644 --- a/yac.stub.php +++ b/yac.stub.php @@ -12,7 +12,7 @@ public function __construct(string $prefix = "") {} public function add(string|array $key, mixed $value, int $ttl = 0):?bool {} - public function get(string|array $key, mixed &$cas = NULL):mixed {} + public function get(string|array $key, mixed &$cas = NULL):?mixed {} public function set(string|array $key, mixed $value = NULL, int $ttl = 0):?bool {} diff --git a/yac_arginfo.h b/yac_arginfo.h index 9dcd1c1..e6dc6dc 100644 --- a/yac_arginfo.h +++ b/yac_arginfo.h @@ -1,8 +1,5 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: 94c1b5ff7b5143a852b886d6977a168be8bdc3a3 */ - -ZEND_STATIC_ASSERT(PHP_VERSION_ID >= 80000, "yac_arginfo.h only supports PHP version ID 80000 or newer, " - "but it is included on an older PHP version"); + * Stub hash: 11d1b22c3df19d543a69341e05da1ab31cc9e230 */ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Yac___construct, 0, 0, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, prefix, IS_STRING, 0, "\"\"") @@ -14,7 +11,7 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Yac_add, 0, 2, _IS_BOOL, 1 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, ttl, IS_LONG, 0, "0") ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Yac_get, 0, 1, IS_MIXED, 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Yac_get, 0, 1, IS_MIXED, 1) ZEND_ARG_TYPE_MASK(0, key, MAY_BE_STRING|MAY_BE_ARRAY, NULL) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(1, cas, IS_MIXED, 0, "NULL") ZEND_END_ARG_INFO() diff --git a/yac_legacy_arginfo.h b/yac_legacy_arginfo.h index 2f9f37c..c455d59 100644 --- a/yac_legacy_arginfo.h +++ b/yac_legacy_arginfo.h @@ -1,8 +1,5 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: 94c1b5ff7b5143a852b886d6977a168be8bdc3a3 */ - -ZEND_STATIC_ASSERT(PHP_VERSION_ID >= 70000, "yac_arginfo.h only supports PHP version ID 70000 or newer, " - "but it is included on an older PHP version"); + * Stub hash: 11d1b22c3df19d543a69341e05da1ab31cc9e230 */ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Yac___construct, 0, 0, 0) ZEND_ARG_INFO(0, prefix)