Passed
Push — master ( 68a45e...23c3b4 )
by Jeroen De
49s
created
src/Values/GlobeCoordinateValue.php 1 patch
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 
43 43
 	/**
44 44
 	 * @param LatLongValue $latLong
45
-	 * @param float|int|null $precision in degrees, e.g. 0.01.
45
+	 * @param null|double $precision in degrees, e.g. 0.01.
46 46
 	 * @param string|null $globe IRI, defaults to 'http://www.wikidata.org/entity/Q2'.
47 47
 	 *
48 48
 	 * @throws IllegalValueException
@@ -61,6 +61,9 @@  discard block
 block discarded – undo
61 61
 		$this->globe = $globe;
62 62
 	}
63 63
 
64
+	/**
65
+	 * @param null|double $precision
66
+	 */
64 67
 	private function assertIsPrecision( ?float $precision ) {
65 68
 		if ( is_float( $precision ) && ( $precision < -360 || $precision > 360 ) ) {
66 69
 			throw new IllegalValueException( '$precision needs to be between -360 and 360' );
@@ -130,7 +133,7 @@  discard block
 block discarded – undo
130 133
 	/**
131 134
 	 * Returns the precision of the coordinate in degrees, e.g. 0.01.
132 135
 	 *
133
-	 * @return float|int|null
136
+	 * @return double|null
134 137
 	 */
135 138
 	public function getPrecision(): ?float {
136 139
 		return $this->precision;
Please login to merge, or discard this patch.