[FEATURE] Allow overriding of image manipulation cropVariants
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / Imaging / ImageManipulation / Area.php
index 0c1a632..7b96db8 100644 (file)
@@ -62,10 +62,10 @@ class Area
     {
         try {
             return new self(
-                $config['x'],
-                $config['y'],
-                $config['width'],
-                $config['height']
+                (float)$config['x'],
+                (float)$config['y'],
+                (float)$config['width'],
+                (float)$config['height']
             );
         } catch (\Throwable $throwable) {
             throw new InvalidConfigurationException(sprintf('Invalid type for area property given: %s', $throwable->getMessage()), 1485279226, $throwable);