From 00a454e928512c671816a1a5ddabf75657690494 Mon Sep 17 00:00:00 2001 From: ciastektk Date: Mon, 4 Dec 2023 11:55:12 +0100 Subject: [PATCH] Changed invalid argument type name to numeric for file size value --- src/lib/FieldType/Image/Type.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/FieldType/Image/Type.php b/src/lib/FieldType/Image/Type.php index bfa06bb97e..6345fec17b 100644 --- a/src/lib/FieldType/Image/Type.php +++ b/src/lib/FieldType/Image/Type.php @@ -137,7 +137,7 @@ protected function checkValueStructure(BaseValue $value) if (isset($value->fileSize) && ((!is_int($value->fileSize) && !is_float($value->fileSize)) || $value->fileSize < 0)) { throw new InvalidArgumentType( '$value->fileSize', - 'int|float', + 'numeric', $value->fileSize ); }