Explorar el Código

修复:imagettftext方法报错 b1199a4

萤火科技 hace 4 años
padre
commit
a8f3b0b2f6
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  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(),
             $size,
             $angle,
-            $x,
-            $y,
-            $colorResource,
+            (int)$x,
+            (int)$y,
+            (int)$colorResource,
             $font,
             $text
         );