summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2020-11-24 00:20:58 +0100
committerChristoph M. Becker <cmbecker69@gmx.de>2020-11-24 00:23:29 +0100
commit807775b641cbe42b80e7a6128377f7f5bd516bb2 (patch)
tree7ec0c589438809b5b5a35437703afdc92feb5aac
parentce18899b44852c29ef80ea41d609df0c47acb1d0 (diff)
downloadphp-git-807775b641cbe42b80e7a6128377f7f5bd516bb2.tar.gz
Fix COMPersistHelper::__construct() stub
`$variant` is optional.
-rw-r--r--ext/com_dotnet/com_persist.stub.php2
-rw-r--r--ext/com_dotnet/com_persist_arginfo.h6
2 files changed, 4 insertions, 4 deletions
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)