]> granicus.if.org Git - php/commitdiff
Fix COMPersistHelper::__construct() stub
authorChristoph M. Becker <cmbecker69@gmx.de>
Mon, 23 Nov 2020 23:20:58 +0000 (00:20 +0100)
committerChristoph M. Becker <cmbecker69@gmx.de>
Mon, 23 Nov 2020 23:23:29 +0000 (00:23 +0100)
`$variant` is optional.

ext/com_dotnet/com_persist.stub.php
ext/com_dotnet/com_persist_arginfo.h

index 381c0861884921338dc8025281ddf061ce157984..b0e9ef6b5c785527da53eea364fcfc754f327c0c 100644 (file)
@@ -4,7 +4,7 @@
 
 final class COMPersistHelper
 {
-    public function __construct(?variant $variant) {}
+    public function __construct(?variant $variant = null) {}
 
     public function GetCurFileName(): string|false {}
 
index 7c4a964545d6772970fa5e2b5a57895686caa2c4..dc8bd6fa4817f958a134b2cd1726912156977bea 100644 (file)
@@ -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)