diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-04-03 16:49:11 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-04-03 17:59:30 +0200 |
commit | 2bcc4ab8f4422f319b509b8fd5bd251d9326c604 (patch) | |
tree | 689f8ba253cc8b4b43454ce70270e0cd0ae69e40 /ext/gd | |
parent | d2c92d7fd326b011b509b6daedee5f4e035fcae1 (diff) | |
download | php-git-2bcc4ab8f4422f319b509b8fd5bd251d9326c604.tar.gz |
Verify that all stubs have a return type
Diffstat (limited to 'ext/gd')
-rw-r--r-- | ext/gd/gd.stub.php | 2 | ||||
-rw-r--r-- | 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 5138e2596a..18497cddfe 100644 --- a/ext/gd/gd.stub.php +++ b/ext/gd/gd.stub.php @@ -209,7 +209,7 @@ function imagefttext(GdImage $im, float $size, float $angle, int $x, int $y, int function imagettfbbox(float $size, float $angle, string $font_file, string $text): array|false {} -function imagettftext(GdImage $im, float $size, float $angle, int $x, int $y, int $col, string $font_file, string $text) {} +function imagettftext(GdImage $im, float $size, float $angle, int $x, int $y, int $col, string $font_file, string $text): array|false {} #endif function imagefilter(GdImage $im, int $filtertype, $arg1 = UNKNOWN, $arg2 = UNKNOWN, $arg3 = UNKNOWN, $arg4 = UNKNOWN): bool {} diff --git a/ext/gd/gd_arginfo.h b/ext/gd/gd_arginfo.h index 0d8554864d..e829e3a4bc 100644 --- a/ext/gd/gd_arginfo.h +++ b/ext/gd/gd_arginfo.h @@ -483,7 +483,7 @@ ZEND_END_ARG_INFO() #endif #if defined(HAVE_GD_FREETYPE) -ZEND_BEGIN_ARG_INFO_EX(arginfo_imagettftext, 0, 0, 8) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_imagettftext, 0, 8, MAY_BE_ARRAY|MAY_BE_FALSE) ZEND_ARG_OBJ_INFO(0, im, GdImage, 0) ZEND_ARG_TYPE_INFO(0, size, IS_DOUBLE, 0) ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) |