From 27de5ae387a2ee432cdef68275ba4e653f403bdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Thu, 2 Mar 2023 23:57:32 +0100 Subject: [PATCH] Fixed static analysis issue --- src/Services/Attachments/AttachmentSubmitHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Services/Attachments/AttachmentSubmitHandler.php b/src/Services/Attachments/AttachmentSubmitHandler.php index e3552eed..65e5c7db 100644 --- a/src/Services/Attachments/AttachmentSubmitHandler.php +++ b/src/Services/Attachments/AttachmentSubmitHandler.php @@ -444,7 +444,7 @@ class AttachmentSubmitHandler if (ctype_digit((string) $maxSize)) { return (int) $maxSize; } elseif (preg_match('/^(\d++)('.implode('|', array_keys($factors)).')$/i', $maxSize, $matches)) { - return $matches[1] * $factors[$unit = strtolower($matches[2])]; + return (((int) $matches[1]) * $factors[strtolower($matches[2])]); } else { throw new RuntimeException(sprintf('"%s" is not a valid maximum size.', $maxSize)); }