Skip to content

Commit d80118d

Browse files
committed
imagecolortransparent() cannot return null
1 parent c174344 commit d80118d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ext/gd/gd.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ function imagefill(GdImage $image, int $x, int $y, int $color): bool {}
177177

178178
function imagecolorstotal(GdImage $image): int {}
179179

180-
function imagecolortransparent(GdImage $image, ?int $color = null): ?int {}
180+
function imagecolortransparent(GdImage $image, ?int $color = null): int {}
181181

182182
function imageinterlace(GdImage $image, ?bool $enable = null): bool {}
183183

ext/gd/gd_arginfo.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: 155175c4f5b60aaed37df2210ae6a5e7f979dae2 */
2+
* Stub hash: 012a149dba5332fcb73544771b881fc7e6d53925 */
33

44
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gd_info, 0, 0, IS_ARRAY, 0)
55
ZEND_END_ARG_INFO()
@@ -358,7 +358,7 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_imagecolorstotal, 0, 1, IS_LONG,
358358
ZEND_ARG_OBJ_INFO(0, image, GdImage, 0)
359359
ZEND_END_ARG_INFO()
360360

361-
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_imagecolortransparent, 0, 1, IS_LONG, 1)
361+
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_imagecolortransparent, 0, 1, IS_LONG, 0)
362362
ZEND_ARG_OBJ_INFO(0, image, GdImage, 0)
363363
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, color, IS_LONG, 1, "null")
364364
ZEND_END_ARG_INFO()

0 commit comments

Comments
 (0)