From 4067519541850cfe47d031792f1d46829468706e Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Sun, 11 Aug 2019 13:43:45 +0200 Subject: [PATCH] Fix arginfo --- ext/gd/gd.stub.php | 2 +- ext/gd/gd_arginfo.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) -- 2.40.0