@@ -51,7 +51,7 @@ |
||
| 51 | 51 | { |
| 52 | 52 | $stringValue = (string) $value; |
| 53 | 53 | |
| 54 | - if (!\preg_match('/^-?\d+(?:\.\d{1,' . self::MAX_DECIMAL_PLACES . '})?$/', $stringValue)) { |
|
| 54 | + if (!\preg_match('/^-?\d+(?:\.\d{1,'.self::MAX_DECIMAL_PLACES.'})?$/', $stringValue)) { |
|
| 55 | 55 | throw new \InvalidArgumentException( |
| 56 | 56 | \sprintf('%s coordinate must not exceed %d decimal places. Given: %s', |
| 57 | 57 | ucfirst($name), |