From ddf1b6e50ad03100fabe84524922a96ef7319da6 Mon Sep 17 00:00:00 2001 From: Xinchen Hui Date: Wed, 26 Jun 2024 16:55:32 +0800 Subject: [PATCH] Fixed arginfo mismatch --- yaf_view.stub.php | 2 +- yaf_view_arginfo.h | 10 ++++++---- yaf_view_legacy_arginfo.h | 10 +++++----- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/yaf_view.stub.php b/yaf_view.stub.php index 50c5a6f7..21f346a2 100644 --- a/yaf_view.stub.php +++ b/yaf_view.stub.php @@ -43,7 +43,7 @@ public function __construct(string $tempalte_dir, ?array $options = NULL) {} public function __isset(string $name):bool {} - public function get(string $name):mixed {} + public function get(?string $name = NULL):mixed {} /** * @return Yaf_View_Simple|NULL|FALSE diff --git a/yaf_view_arginfo.h b/yaf_view_arginfo.h index a782e21d..109cb3ce 100644 --- a/yaf_view_arginfo.h +++ b/yaf_view_arginfo.h @@ -1,5 +1,5 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: 45071bca670049bd8ac3f1a2ea5611c022466ade */ + * Stub hash: 241571a08dce1a4f00fe4e4ae5874c211fc0918d */ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Yaf_View_Interface_assign, 0, 0, 1) ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) @@ -29,8 +29,8 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Yaf_View_Simple___isset, 0 ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Yaf_View_Simple_get, 0, 1, IS_MIXED, 0) - ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Yaf_View_Simple_get, 0, 0, IS_MIXED, 0) + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, name, IS_STRING, 1, "NULL") ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_class_Yaf_View_Simple_assign, 0, 0, MAY_BE_OBJECT|MAY_BE_NULL|MAY_BE_FALSE) @@ -69,7 +69,9 @@ ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Yaf_View_Simple_getScriptPath, 0, 0, IS_STRING, 1) ZEND_END_ARG_INFO() -#define arginfo_class_Yaf_View_Simple___get arginfo_class_Yaf_View_Simple_get +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Yaf_View_Simple___get, 0, 1, IS_MIXED, 0) + ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) +ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Yaf_View_Simple___set, 0, 2, IS_VOID, 0) ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) diff --git a/yaf_view_legacy_arginfo.h b/yaf_view_legacy_arginfo.h index 6878e4f3..211fa0bc 100644 --- a/yaf_view_legacy_arginfo.h +++ b/yaf_view_legacy_arginfo.h @@ -1,5 +1,5 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: 45071bca670049bd8ac3f1a2ea5611c022466ade */ + * Stub hash: 241571a08dce1a4f00fe4e4ae5874c211fc0918d */ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Yaf_View_Interface_assign, 0, 0, 1) ZEND_ARG_INFO(0, name) @@ -29,7 +29,9 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Yaf_View_Simple___isset, 0, 0, 1) ZEND_ARG_INFO(0, name) ZEND_END_ARG_INFO() -#define arginfo_class_Yaf_View_Simple_get arginfo_class_Yaf_View_Simple___isset +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Yaf_View_Simple_get, 0, 0, 0) + ZEND_ARG_INFO(0, name) +ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Yaf_View_Simple_assign, 0, 0, 0) ZEND_ARG_INFO(0, name) @@ -50,9 +52,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Yaf_View_Simple_assignRef, 0, 0, 2) ZEND_ARG_INFO(1, value) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Yaf_View_Simple_clear, 0, 0, 0) - ZEND_ARG_INFO(0, name) -ZEND_END_ARG_INFO() +#define arginfo_class_Yaf_View_Simple_clear arginfo_class_Yaf_View_Simple_get #define arginfo_class_Yaf_View_Simple_setScriptPath arginfo_class_Yaf_View_Interface_setScriptPath