summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2021-03-17 15:09:06 +0100
committerNikita Popov <nikita.ppv@gmail.com>2021-03-17 15:09:06 +0100
commitd80118dc163e2fce6990b997ff7100974358481c (patch)
tree730484ca436cb2e207b469e69f136b1876d4b7f6
parentc17434429d4de525a8eb8c33af77324e03a14684 (diff)
downloadphp-git-d80118dc163e2fce6990b997ff7100974358481c.tar.gz
imagecolortransparent() cannot return null
-rw-r--r--ext/gd/gd.stub.php2
-rw-r--r--ext/gd/gd_arginfo.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/ext/gd/gd.stub.php b/ext/gd/gd.stub.php
index 89a3f0e0f3..732baa77e7 100644
--- a/ext/gd/gd.stub.php
+++ b/ext/gd/gd.stub.php
@@ -177,7 +177,7 @@ function imagefill(GdImage $image, int $x, int $y, int $color): bool {}
function imagecolorstotal(GdImage $image): int {}
-function imagecolortransparent(GdImage $image, ?int $color = null): ?int {}
+function imagecolortransparent(GdImage $image, ?int $color = null): int {}
function imageinterlace(GdImage $image, ?bool $enable = null): bool {}
diff --git a/ext/gd/gd_arginfo.h b/ext/gd/gd_arginfo.h
index ffa8b5565c..74e93e024a 100644
--- a/ext/gd/gd_arginfo.h
+++ b/ext/gd/gd_arginfo.h
@@ -1,5 +1,5 @@
/* This is a generated file, edit the .stub.php file instead.
- * Stub hash: 155175c4f5b60aaed37df2210ae6a5e7f979dae2 */
+ * Stub hash: 012a149dba5332fcb73544771b881fc7e6d53925 */
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gd_info, 0, 0, IS_ARRAY, 0)
ZEND_END_ARG_INFO()
@@ -358,7 +358,7 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_imagecolorstotal, 0, 1, IS_LONG,
ZEND_ARG_OBJ_INFO(0, image, GdImage, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_imagecolortransparent, 0, 1, IS_LONG, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_imagecolortransparent, 0, 1, IS_LONG, 0)
ZEND_ARG_OBJ_INFO(0, image, GdImage, 0)
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, color, IS_LONG, 1, "null")
ZEND_END_ARG_INFO()