Skip to content

Commit 0c5b75b

Browse files
committed
Fix arginfo
The second parameter of `imagexbm()` is nullable.
1 parent f30501b commit 0c5b75b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ext/gd/gd.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ function imagecreatefrombmp(string $filename) {}
117117
function imagecreatefromtga(string $filename) {}
118118
#endif
119119

120-
function imagexbm($im, string $filename, int $foreground = UNKNOWN): bool {}
120+
function imagexbm($im, ?string $filename, int $foreground = UNKNOWN): bool {}
121121

122122
function imagegif($im, $to = NULL): bool {}
123123

ext/gd/gd_arginfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ ZEND_END_ARG_INFO()
196196

197197
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_imagexbm, 0, 2, _IS_BOOL, 0)
198198
ZEND_ARG_INFO(0, im)
199-
ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
199+
ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 1)
200200
ZEND_ARG_TYPE_INFO(0, foreground, IS_LONG, 0)
201201
ZEND_END_ARG_INFO()
202202

0 commit comments

Comments
 (0)