]> granicus.if.org Git - php/commitdiff
Fix arginfo
authorChristoph M. Becker <cmbecker69@gmx.de>
Sun, 11 Aug 2019 14:40:40 +0000 (16:40 +0200)
committerChristoph M. Becker <cmbecker69@gmx.de>
Sun, 11 Aug 2019 14:41:31 +0000 (16:41 +0200)
The second parameter of `imagexbm()` is nullable.

ext/gd/gd.stub.php
ext/gd/gd_arginfo.h

index fe7f7aa5f0ba4f7fa18d39f2627360bf73434e49..75d0916751bcd6903c15595bd0cfb52ceb9b85ac 100644 (file)
@@ -117,7 +117,7 @@ function imagecreatefrombmp(string $filename) {}
 function imagecreatefromtga(string $filename) {}
 #endif
 
-function imagexbm($im, string $filename, int $foreground = UNKNOWN): bool {}
+function imagexbm($im, ?string $filename, int $foreground = UNKNOWN): bool {}
 
 function imagegif($im, $to = NULL): bool {}
 
index ac3b68a2f01c8e1d3aa2adfc5bd8e8db047aee79..0544802c7ef3cd4aabff1a1a383854061da7b28f 100644 (file)
@@ -196,7 +196,7 @@ ZEND_END_ARG_INFO()
 
 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_imagexbm, 0, 2, _IS_BOOL, 0)
        ZEND_ARG_INFO(0, im)
-       ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
+       ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 1)
        ZEND_ARG_TYPE_INFO(0, foreground, IS_LONG, 0)
 ZEND_END_ARG_INFO()