@@ -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) { |
@@ -255,6 +258,7 @@ discard block |
||
| 255 | 258 | |
| 256 | 259 | /** |
| 257 | 260 | * @param \Spatie\Period\Period ...$periods |
| 261 | + * @param Period[] $periods |
|
| 258 | 262 | * |
| 259 | 263 | * @return \Spatie\Period\PeriodCollection|static[] |
| 260 | 264 | */ |
@@ -271,6 +275,7 @@ discard block |
||
| 271 | 275 | |
| 272 | 276 | /** |
| 273 | 277 | * @param \Spatie\Period\Period ...$periods |
| 278 | + * @param Period[] $periods |
|
| 274 | 279 | * |
| 275 | 280 | * @return \Spatie\Period\Period|static |
| 276 | 281 | */ |
@@ -329,6 +334,7 @@ discard block |
||
| 329 | 334 | |
| 330 | 335 | /** |
| 331 | 336 | * @param \Spatie\Period\Period ...$periods |
| 337 | + * @param Period[] $periods |
|
| 332 | 338 | * |
| 333 | 339 | * @return \Spatie\Period\PeriodCollection|static[] |
| 334 | 340 | */ |