Skip to content

Commit b04c1df

Browse files
haj8110darwinz
andauthored
Update Conversions/Lengthconversions.php
Co-authored-by: Brandon Johnson <[email protected]>
1 parent 9aa383f commit b04c1df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Conversions/Lengthconversions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class LengthConversions {
1313
private static function validateInput($value, $method) {
1414
// Make sure we have a numeric value
1515
if (!is_numeric($value)) {
16-
throw new InvalidArgumentException("Invalid input for $method");
16+
throw new InvalidArgumentException("Invalid input for $method: expected numeric, got " . gettype($value) . " (" . var_export($value, true) . ")");
1717
}
1818
}
1919

0 commit comments

Comments
 (0)