@@ -56,6 +56,7 @@ discard block |
||
56 | 56 | |
57 | 57 | /** |
58 | 58 | * @internal Only for the purpose of Ivory itself. |
59 | + * @param integer $inf |
|
59 | 60 | */ |
60 | 61 | final protected function __construct($inf, \DateTimeImmutable $dt = null) |
61 | 62 | { |
@@ -178,7 +179,7 @@ discard block |
||
178 | 179 | |
179 | 180 | /** |
180 | 181 | * @param \DateTimeZone $timezone timezone to create the {@link \DateTime} object with |
181 | - * @return \DateTime|null the date/time represented as a {@link \DateTimeImmutable} object; |
|
182 | + * @return null|\DateTimeImmutable the date/time represented as a {@link \DateTimeImmutable} object; |
|
182 | 183 | * <tt>null</tt> iff the date/time is not finite |
183 | 184 | */ |
184 | 185 | public function toDateTimeImmutable(\DateTimeZone $timezone = null) |
@@ -233,6 +234,13 @@ discard block |
||
233 | 234 | } |
234 | 235 | |
235 | 236 | |
237 | + /** |
|
238 | + * @param integer $years |
|
239 | + * @param integer $months |
|
240 | + * @param integer $days |
|
241 | + * @param integer $hours |
|
242 | + * @param integer $minutes |
|
243 | + */ |
|
236 | 244 | final protected function addPartsImpl($years, $months, $days, $hours, $minutes, $seconds) |
237 | 245 | { |
238 | 246 | if ($this->inf) { |
@@ -164,7 +164,7 @@ |
||
164 | 164 | } |
165 | 165 | |
166 | 166 | /** |
167 | - * @param IConnection|string $conn (name of) connection to use as the default connection |
|
167 | + * @param IConnection $conn (name of) connection to use as the default connection |
|
168 | 168 | * @throws \RuntimeException if the requested connection is not defined |
169 | 169 | */ |
170 | 170 | public static function useConnectionAsDefault($conn) |
@@ -10,9 +10,9 @@ |
||
10 | 10 | * plain array of matches, but an extended array: each item is a pair of the matching portion of the needle and the |
11 | 11 | * byte offset to the subject, like {@link preg_match_all()} does with the `PREG_OFFSET_CAPTURE` flag. |
12 | 12 | * |
13 | - * @param string|string[] $pattern |
|
13 | + * @param string $pattern |
|
14 | 14 | * @param callable $callback |
15 | - * @param string|string[] $subject |
|
15 | + * @param string $subject |
|
16 | 16 | * @param int $limit |
17 | 17 | * @param int|null $count |
18 | 18 | * @return string|string[] depending on whether <tt>$subject</tt> is <tt>string</tt> or <tt>array</tt>, |
@@ -13,7 +13,7 @@ |
||
13 | 13 | class ConnectionException extends \RuntimeException |
14 | 14 | { |
15 | 15 | /** |
16 | - * @param string|resource $message alternatively to the message, a connection handler may be given - the last error |
|
16 | + * @param string $message alternatively to the message, a connection handler may be given - the last error |
|
17 | 17 | * message on this connection is considered then |
18 | 18 | * @param int $code |
19 | 19 | * @param Exception $previous |
@@ -75,6 +75,12 @@ discard block |
||
75 | 75 | } |
76 | 76 | } |
77 | 77 | |
78 | + /** |
|
79 | + * @param integer $month |
|
80 | + * @param integer $day |
|
81 | + * @param integer $hour |
|
82 | + * @param integer $minute |
|
83 | + */ |
|
78 | 84 | protected static function inRanges($month, $day, $hour, $minute, $second) |
79 | 85 | { |
80 | 86 | return ( |
@@ -88,6 +94,13 @@ discard block |
||
88 | 94 | ); |
89 | 95 | } |
90 | 96 | |
97 | + /** |
|
98 | + * @param integer $year |
|
99 | + * @param integer $month |
|
100 | + * @param integer $day |
|
101 | + * @param integer $hour |
|
102 | + * @param integer $minute |
|
103 | + */ |
|
91 | 104 | protected static function assertRanges($year, $month, $day, $hour, $minute, $second) |
92 | 105 | { |
93 | 106 | if ($year == 0) { |
@@ -202,7 +215,7 @@ discard block |
||
202 | 215 | * Adds a given number of seconds (1 by default) to this date/time and returns the result. Only affects finite |
203 | 216 | * dates. |
204 | 217 | * |
205 | - * @param int|float $seconds |
|
218 | + * @param integer $seconds |
|
206 | 219 | * @return static the date <tt>$seconds</tt> seconds after (or before, if negative) this date/time |
207 | 220 | */ |
208 | 221 | public function addSecond($seconds = 1) |
@@ -17,8 +17,8 @@ |
||
17 | 17 | /** |
18 | 18 | * Creates a new box from a corner and its opposite corner, each as either a {@link Point} or a pair of coordinates. |
19 | 19 | * |
20 | - * @param Point|float[] $corner |
|
21 | - * @param Point|float[] $oppositeCorner |
|
20 | + * @param null|Point $corner |
|
21 | + * @param null|Point $oppositeCorner |
|
22 | 22 | * @return Box |
23 | 23 | */ |
24 | 24 | public static function fromOppositeCorners($corner, $oppositeCorner): Box |
@@ -15,7 +15,7 @@ |
||
15 | 15 | /** |
16 | 16 | * Creates a new circle by its center point and radius. |
17 | 17 | * |
18 | - * @param Point|float[] $center the center point |
|
18 | + * @param null|Point $center the center point |
|
19 | 19 | * @param float $radius radius of the circle |
20 | 20 | * @return Circle |
21 | 21 | */ |
@@ -254,7 +254,7 @@ discard block |
||
254 | 254 | * which might or might not be desired. Such a difference only arises in the trailing fractional zero digits, |
255 | 255 | * though. |
256 | 256 | * |
257 | - * @param string|int|float|Decimal|object $number number to compare this number with |
|
257 | + * @param Decimal $number number to compare this number with |
|
258 | 258 | * @return bool whether this number numerically equals to <tt>$number</tt> |
259 | 259 | */ |
260 | 260 | public function equals($number): bool |
@@ -275,7 +275,7 @@ discard block |
||
275 | 275 | } |
276 | 276 | |
277 | 277 | /** |
278 | - * @param string|int|float|Decimal|object $number |
|
278 | + * @param Decimal $number |
|
279 | 279 | * @return bool <tt>true</tt> iff this number is numerically greater than <tt>$number</tt> |
280 | 280 | */ |
281 | 281 | public function greaterThan($number): bool |
@@ -360,7 +360,7 @@ discard block |
||
360 | 360 | } |
361 | 361 | |
362 | 362 | /** |
363 | - * @param string|int|float|Decimal|object $augend |
|
363 | + * @param integer $augend |
|
364 | 364 | * @return Decimal a new decimal number, representing the result of sum of this and the given number |
365 | 365 | */ |
366 | 366 | public function add($augend): Decimal |
@@ -377,7 +377,7 @@ discard block |
||
377 | 377 | } |
378 | 378 | |
379 | 379 | /** |
380 | - * @param string|int|float|Decimal|object $subtrahend |
|
380 | + * @param Decimal $subtrahend |
|
381 | 381 | * @return Decimal a new decimal number, representing the result of subtraction of this and the given number |
382 | 382 | */ |
383 | 383 | public function subtract($subtrahend): Decimal |
@@ -394,7 +394,7 @@ discard block |
||
394 | 394 | } |
395 | 395 | |
396 | 396 | /** |
397 | - * @param string|int|float|Decimal|object $multiplicand |
|
397 | + * @param Decimal $multiplicand |
|
398 | 398 | * @return Decimal a new decimal number, representing the result of multiplication of this and the given number |
399 | 399 | */ |
400 | 400 | public function multiply($multiplicand): Decimal |
@@ -411,7 +411,7 @@ discard block |
||
411 | 411 | } |
412 | 412 | |
413 | 413 | /** |
414 | - * @param string|int|float|Decimal|object $divisor |
|
414 | + * @param Decimal $divisor |
|
415 | 415 | * @return Decimal a new decimal number, representing the result of division of this number with the given number |
416 | 416 | * @throws \RuntimeException if <tt>$divisor</tt> is zero |
417 | 417 | */ |
@@ -89,6 +89,9 @@ |
||
89 | 89 | return $value; |
90 | 90 | } |
91 | 91 | |
92 | + /** |
|
93 | + * @return string|null |
|
94 | + */ |
|
92 | 95 | private static function getJsonErrorMsg() |
93 | 96 | { |
94 | 97 | if (PHP_VERSION_ID >= 50500) { |