From: Christoph M. Becker Date: Mon, 23 Nov 2020 23:20:58 +0000 (+0100) Subject: Fix COMPersistHelper::__construct() stub X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=807775b641cbe42b80e7a6128377f7f5bd516bb2;p=php Fix COMPersistHelper::__construct() stub `$variant` is optional. --- diff --git a/ext/com_dotnet/com_persist.stub.php b/ext/com_dotnet/com_persist.stub.php index 381c086188..b0e9ef6b5c 100644 --- a/ext/com_dotnet/com_persist.stub.php +++ b/ext/com_dotnet/com_persist.stub.php @@ -4,7 +4,7 @@ final class COMPersistHelper { - public function __construct(?variant $variant) {} + public function __construct(?variant $variant = null) {} public function GetCurFileName(): string|false {} diff --git a/ext/com_dotnet/com_persist_arginfo.h b/ext/com_dotnet/com_persist_arginfo.h index 7c4a964545..dc8bd6fa48 100644 --- a/ext/com_dotnet/com_persist_arginfo.h +++ b/ext/com_dotnet/com_persist_arginfo.h @@ -1,8 +1,8 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: d04d007cac328014c6cc76a00cc291237965d56d */ + * Stub hash: 2c2759e6c1894713439e3ee8da7f56810d00d8cf */ -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_COMPersistHelper___construct, 0, 0, 1) - ZEND_ARG_OBJ_INFO(0, variant, variant, 1) +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_COMPersistHelper___construct, 0, 0, 0) + ZEND_ARG_OBJ_INFO_WITH_DEFAULT_VALUE(0, variant, variant, 1, "null") ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_class_COMPersistHelper_GetCurFileName, 0, 0, MAY_BE_STRING|MAY_BE_FALSE)