@@ -2,8 +2,8 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Spatie\Period; |
| 4 | 4 | |
| 5 | -use DateTime; |
|
| 6 | 5 | use DateInterval; |
| 6 | +use DateTime; |
|
| 7 | 7 | use DateTimeImmutable; |
| 8 | 8 | use DateTimeInterface; |
| 9 | 9 | use Spatie\Period\Exceptions\InvalidDate; |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | } |
| 29 | 29 | |
| 30 | 30 | /** |
| 31 | - * @param \DateTimeInterface|string $start |
|
| 31 | + * @param DateTimeImmutable $start |
|
| 32 | 32 | * @param \DateTimeInterface|string $end |
| 33 | 33 | * @param string|null $format |
| 34 | 34 | * |
@@ -50,6 +50,9 @@ discard block |
||
| 50 | 50 | ); |
| 51 | 51 | } |
| 52 | 52 | |
| 53 | + /** |
|
| 54 | + * @param null|string $format |
|
| 55 | + */ |
|
| 53 | 56 | protected static function resolveDate($date, ?string $format): DateTimeImmutable |
| 54 | 57 | { |
| 55 | 58 | if ($date instanceof DateTimeImmutable) { |
@@ -260,6 +263,7 @@ discard block |
||
| 260 | 263 | |
| 261 | 264 | /** |
| 262 | 265 | * @param \Spatie\Period\Period ...$periods |
| 266 | + * @param Period[] $periods |
|
| 263 | 267 | * |
| 264 | 268 | * @return \Spatie\Period\Period|static |
| 265 | 269 | */ |