@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | |
| 41 | 41 | /** |
| 42 | 42 | * @param LatLongValue $latLong |
| 43 | - * @param float|int|null $precision in degrees, e.g. 0.01. |
|
| 43 | + * @param null|double $precision in degrees, e.g. 0.01. |
|
| 44 | 44 | * @param string|null $globe IRI, defaults to 'http://www.wikidata.org/entity/Q2'. |
| 45 | 45 | * |
| 46 | 46 | * @throws IllegalValueException |
@@ -59,6 +59,9 @@ discard block |
||
| 59 | 59 | $this->globe = $globe; |
| 60 | 60 | } |
| 61 | 61 | |
| 62 | + /** |
|
| 63 | + * @param null|double $precision |
|
| 64 | + */ |
|
| 62 | 65 | private function assertIsPrecision( ?float $precision ) { |
| 63 | 66 | if ( is_float( $precision ) && ( $precision < -360 || $precision > 360 ) ) { |
| 64 | 67 | throw new IllegalValueException( '$precision needs to be between -360 and 360' ); |