Skip to content

Commit 807775b

Browse files
committed
Fix COMPersistHelper::__construct() stub
`$variant` is optional.
1 parent ce18899 commit 807775b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ext/com_dotnet/com_persist.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
final class COMPersistHelper
66
{
7-
public function __construct(?variant $variant) {}
7+
public function __construct(?variant $variant = null) {}
88

99
public function GetCurFileName(): string|false {}
1010

ext/com_dotnet/com_persist_arginfo.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: d04d007cac328014c6cc76a00cc291237965d56d */
2+
* Stub hash: 2c2759e6c1894713439e3ee8da7f56810d00d8cf */
33

4-
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_COMPersistHelper___construct, 0, 0, 1)
5-
ZEND_ARG_OBJ_INFO(0, variant, variant, 1)
4+
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_COMPersistHelper___construct, 0, 0, 0)
5+
ZEND_ARG_OBJ_INFO_WITH_DEFAULT_VALUE(0, variant, variant, 1, "null")
66
ZEND_END_ARG_INFO()
77

88
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_class_COMPersistHelper_GetCurFileName, 0, 0, MAY_BE_STRING|MAY_BE_FALSE)

0 commit comments

Comments
 (0)