mirror of
https://github.com/Imagick/imagick.git
synced 2026-06-19 07:35:36 +00:00
fix ImagickDraw
- use RETURN_THROWS when possible - fix setFillColor, setStrokeColor, setTextUnderColor and setBorderColor to return FALSE instead of NULL on error - fix getTextEncoding and getClipPath proto (may return false)
This commit is contained in:
committed by
Jakub Zelenka
parent
b1132fae70
commit
c74f21fddc
@@ -143,7 +143,7 @@ class ImagickDraw
|
||||
|
||||
public function getTextDecoration(): int {}
|
||||
|
||||
public function getTextEncoding(): string {}
|
||||
public function getTextEncoding(): false|string {}
|
||||
|
||||
public function getFontStretch(): int {}
|
||||
|
||||
@@ -183,7 +183,7 @@ class ImagickDraw
|
||||
|
||||
public function comment(string $comment): bool {}
|
||||
|
||||
public function getClipPath(): string {}
|
||||
public function getClipPath(): false|string {}
|
||||
|
||||
public function getClipRule(): int {}
|
||||
|
||||
|
||||
@@ -689,7 +689,14 @@ ZEND_END_ARG_INFO()
|
||||
|
||||
#define arginfo_class_ImagickDraw_getTextDecoration arginfo_class_ImagickDraw_getFontStyle
|
||||
|
||||
#define arginfo_class_ImagickDraw_getTextEncoding arginfo_class_ImagickDraw_getFont
|
||||
|
||||
#if PHP_VERSION_ID >= 80000
|
||||
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_class_ImagickDraw_getTextEncoding, 0, 0, MAY_BE_FALSE|MAY_BE_STRING)
|
||||
#else
|
||||
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_ImagickDraw_getTextEncoding, 0, 0, 0)
|
||||
#endif
|
||||
|
||||
ZEND_END_ARG_INFO()
|
||||
|
||||
#define arginfo_class_ImagickDraw_getFontStretch arginfo_class_ImagickDraw_getFontStyle
|
||||
|
||||
@@ -904,7 +911,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_ImagickDraw_comment, 0, 0, 1)
|
||||
#endif
|
||||
ZEND_END_ARG_INFO()
|
||||
|
||||
#define arginfo_class_ImagickDraw_getClipPath arginfo_class_ImagickDraw_getFont
|
||||
#define arginfo_class_ImagickDraw_getClipPath arginfo_class_ImagickDraw_getTextEncoding
|
||||
|
||||
#define arginfo_class_ImagickDraw_getClipRule arginfo_class_ImagickDraw_getFontStyle
|
||||
|
||||
|
||||
+167
-190
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user