@@ -503,7 +503,7 @@ discard block |
||
503 | 503 | /** |
504 | 504 | * Create a Carbon instance for tomorrow. |
505 | 505 | * |
506 | - * @param \DateTimeZone|string|null $tz |
|
506 | + * @param DateTimeZone $tz |
|
507 | 507 | * |
508 | 508 | * @return static |
509 | 509 | */ |
@@ -515,7 +515,7 @@ discard block |
||
515 | 515 | /** |
516 | 516 | * Create a Carbon instance for yesterday. |
517 | 517 | * |
518 | - * @param \DateTimeZone|string|null $tz |
|
518 | + * @param DateTimeZone $tz |
|
519 | 519 | * |
520 | 520 | * @return static |
521 | 521 | */ |
@@ -1870,8 +1870,8 @@ discard block |
||
1870 | 1870 | /** |
1871 | 1871 | * Determines if the instance is between two others |
1872 | 1872 | * |
1873 | - * @param \Carbon\Carbon|\DateTimeInterface|mixed $date1 |
|
1874 | - * @param \Carbon\Carbon|\DateTimeInterface|mixed $date2 |
|
1873 | + * @param \Illuminate\Support\Carbon $date1 |
|
1874 | + * @param \Illuminate\Support\Carbon $date2 |
|
1875 | 1875 | * @param bool $equal Indicates if a > and < comparison should be used or <= or >= |
1876 | 1876 | * |
1877 | 1877 | * @return bool |
@@ -3181,7 +3181,7 @@ discard block |
||
3181 | 3181 | /** |
3182 | 3182 | * Get the difference in years |
3183 | 3183 | * |
3184 | - * @param \Carbon\Carbon|\DateTimeInterface|string|null $date |
|
3184 | + * @param Carbon $date |
|
3185 | 3185 | * @param bool $absolute Get the absolute of the difference |
3186 | 3186 | * |
3187 | 3187 | * @return int |
@@ -3380,7 +3380,7 @@ discard block |
||
3380 | 3380 | * @param \Carbon\Carbon|\DateTimeInterface|string|null $date |
3381 | 3381 | * @param bool $absolute Get the absolute of the difference |
3382 | 3382 | * |
3383 | - * @return int |
|
3383 | + * @return double |
|
3384 | 3384 | */ |
3385 | 3385 | public function diffInSeconds($date = null, $absolute = true) |
3386 | 3386 | { |
@@ -3412,7 +3412,7 @@ discard block |
||
3412 | 3412 | /** |
3413 | 3413 | * The number of seconds since midnight. |
3414 | 3414 | * |
3415 | - * @return int |
|
3415 | + * @return double |
|
3416 | 3416 | */ |
3417 | 3417 | public function secondsSinceMidnight() |
3418 | 3418 | { |
@@ -3422,7 +3422,7 @@ discard block |
||
3422 | 3422 | /** |
3423 | 3423 | * The number of seconds until 23:59:59. |
3424 | 3424 | * |
3425 | - * @return int |
|
3425 | + * @return double |
|
3426 | 3426 | */ |
3427 | 3427 | public function secondsUntilEndOfDay() |
3428 | 3428 | { |
@@ -36,6 +36,9 @@ |
||
36 | 36 | return static::$singleton; |
37 | 37 | } |
38 | 38 | |
39 | + /** |
|
40 | + * @param string $locale |
|
41 | + */ |
|
39 | 42 | public function __construct($locale, Translation\Formatter\MessageFormatterInterface $formatter = null, $cacheDir = null, $debug = false) |
40 | 43 | { |
41 | 44 | $this->addLoader('array', new Translation\Loader\ArrayLoader()); |
@@ -3968,7 +3968,7 @@ |
||
3968 | 3968 | * @param int|string $options Either a PATHINFO_* constant, |
3969 | 3969 | * or a string name to return only the specified piece |
3970 | 3970 | * |
3971 | - * @return string|array |
|
3971 | + * @return string |
|
3972 | 3972 | */ |
3973 | 3973 | public static function mb_pathinfo($path, $options = null) |
3974 | 3974 | { |
@@ -209,7 +209,7 @@ |
||
209 | 209 | * Connect to a POP3 server. |
210 | 210 | * |
211 | 211 | * @param string $host |
212 | - * @param int|bool $port |
|
212 | + * @param integer $port |
|
213 | 213 | * @param int $tval |
214 | 214 | * |
215 | 215 | * @return bool |
@@ -1314,7 +1314,7 @@ |
||
1314 | 1314 | * If no reply has been received yet, it will return null. |
1315 | 1315 | * If no pattern was matched, it will return false. |
1316 | 1316 | * |
1317 | - * @return bool|null|string |
|
1317 | + * @return string |
|
1318 | 1318 | * |
1319 | 1319 | * @see recordLastTransactionID() |
1320 | 1320 | */ |
@@ -1083,6 +1083,9 @@ |
||
1083 | 1083 | return $this; |
1084 | 1084 | } |
1085 | 1085 | |
1086 | + /** |
|
1087 | + * @param integer $width |
|
1088 | + */ |
|
1086 | 1089 | private function splitStringByWidth($string, $width) |
1087 | 1090 | { |
1088 | 1091 | // str_split is not suitable for multi-byte characters, we should use preg_split to get char array properly. |
@@ -383,7 +383,7 @@ discard block |
||
383 | 383 | * @param string|array $shortcut The shortcuts, can be null, a string of shortcuts delimited by | or an array of shortcuts |
384 | 384 | * @param int|null $mode The option mode: One of the VALUE_* constants |
385 | 385 | * @param string $description A description text |
386 | - * @param string|string[]|bool|null $default The default value (must be null for self::VALUE_NONE) |
|
386 | + * @param string $default The default value (must be null for self::VALUE_NONE) |
|
387 | 387 | * |
388 | 388 | * @throws InvalidArgumentException If option mode is invalid or incompatible |
389 | 389 | * |
@@ -623,7 +623,7 @@ discard block |
||
623 | 623 | * |
624 | 624 | * @param string $name The helper name |
625 | 625 | * |
626 | - * @return mixed The helper value |
|
626 | + * @return \Symfony\Component\Console\Helper\HelperInterface The helper value |
|
627 | 627 | * |
628 | 628 | * @throws LogicException if no HelperSet is defined |
629 | 629 | * @throws InvalidArgumentException if the helper is not defined |
@@ -26,6 +26,7 @@ |
||
26 | 26 | * @param OutputInterface $output |
27 | 27 | * @param object $object |
28 | 28 | * @param array $options |
29 | + * @return void |
|
29 | 30 | */ |
30 | 31 | public function describe(OutputInterface $output, $object, array $options = array()); |
31 | 32 | } |
@@ -298,7 +298,7 @@ |
||
298 | 298 | } |
299 | 299 | |
300 | 300 | /** |
301 | - * @param (Command|string)[] $commands |
|
301 | + * @param Command[] $commands |
|
302 | 302 | */ |
303 | 303 | private function getColumnWidth(array $commands): int |
304 | 304 | { |