Selaa lähdekoodia

修复:imagettftext方法报错 b1199a4

萤火科技 4 vuotta sitten
vanhempi
säilyke
a8f3b0b2f6
1 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  1. 3 3
      vendor/kosinix/grafika/src/Grafika/Gd/Editor.php

+ 3 - 3
vendor/kosinix/grafika/src/Grafika/Gd/Editor.php

@@ -798,9 +798,9 @@ final class Editor implements EditorInterface
             $image->getCore(),
             $image->getCore(),
             $size,
             $size,
             $angle,
             $angle,
-            $x,
-            $y,
-            $colorResource,
+            (int)$x,
+            (int)$y,
+            (int)$colorResource,
             $font,
             $font,
             $text
             $text
         );
         );