mirror of
https://github.com/Imagick/imagick.git
synced 2026-06-19 07:35:36 +00:00
fix Implicit conversion
This commit is contained in:
@@ -13,7 +13,7 @@ function setColorValueQuantum() {
|
||||
|
||||
$draw = new \ImagickDraw();
|
||||
$color = new \ImagickPixel('blue');
|
||||
$color->setcolorValueQuantum(\Imagick::COLOR_RED, 128 * $quantumRange['quantumRangeLong'] / 256);
|
||||
$color->setcolorValueQuantum(\Imagick::COLOR_RED, (int)(128 * $quantumRange['quantumRangeLong'] / 256));
|
||||
|
||||
$draw->setstrokewidth(1.0);
|
||||
$draw->setStrokeColor($color);
|
||||
@@ -33,4 +33,4 @@ setColorValueQuantum() ;
|
||||
echo "Ok";
|
||||
?>
|
||||
--EXPECTF--
|
||||
Ok
|
||||
Ok
|
||||
|
||||
Reference in New Issue
Block a user