Skip to content

Commit 17fa9b7

Browse files
committed
Fix the return type of imagecolorexactalpha()
1 parent a4c41d4 commit 17fa9b7

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
@@ -40,7 +40,7 @@ function imagecolorresolvealpha(GdImage $image, int $red, int $green, int $blue,
4040

4141
function imagecolorclosestalpha(GdImage $image, int $red, int $green, int $blue, int $alpha): int {}
4242

43-
function imagecolorexactalpha(GdImage $image, int $red, int $green, int $blue, int $alpha): int|false {}
43+
function imagecolorexactalpha(GdImage $image, int $red, int $green, int $blue, int $alpha): int {}
4444

4545
function imagecopyresampled(GdImage $dst_image, GdImage $src_image, int $dst_x, int $dst_y, int $src_x, int $src_y, int $dst_width, int $dst_height, int $src_width, int $src_height): bool {}
4646

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: 52bdaaa00be290a14461737675d5ca18ebf9174b */
2+
* Stub hash: c45bd3923e6c65a869b39822f574bde363a3499f */
33

44
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gd_info, 0, 0, IS_ARRAY, 0)
55
ZEND_END_ARG_INFO()
@@ -91,7 +91,7 @@ ZEND_END_ARG_INFO()
9191

9292
#define arginfo_imagecolorclosestalpha arginfo_imagecolorresolvealpha
9393

94-
#define arginfo_imagecolorexactalpha arginfo_imagecolorallocatealpha
94+
#define arginfo_imagecolorexactalpha arginfo_imagecolorresolvealpha
9595

9696
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_imagecopyresampled, 0, 10, _IS_BOOL, 0)
9797
ZEND_ARG_OBJ_INFO(0, dst_image, GdImage, 0)

0 commit comments

Comments
 (0)