From: Christoph M. Becker Date: Sun, 11 Aug 2019 11:43:45 +0000 (+0200) Subject: Fix arginfo X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4067519541850cfe47d031792f1d46829468706e;p=php Fix arginfo --- diff --git a/ext/gd/gd.stub.php b/ext/gd/gd.stub.php index 688f8ee622..021b79ead2 100644 --- a/ext/gd/gd.stub.php +++ b/ext/gd/gd.stub.php @@ -243,7 +243,7 @@ function imageconvolution($im, array $matrix3x3, float $div, float $offset): boo function imageflip($im, int $mode): bool {} -function imageantialias($im, int $on): bool {} +function imageantialias($im, bool $on): bool {} /** @return resource|false */ function imagecrop($im, array $rect) {} diff --git a/ext/gd/gd_arginfo.h b/ext/gd/gd_arginfo.h index 43de99259d..bc26ea834a 100644 --- a/ext/gd/gd_arginfo.h +++ b/ext/gd/gd_arginfo.h @@ -527,7 +527,7 @@ ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_imageantialias, 0, 2, _IS_BOOL, 0) ZEND_ARG_INFO(0, im) - ZEND_ARG_TYPE_INFO(0, on, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, on, _IS_BOOL, 0) ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_imagecrop, 0, 0, 2)