Skip to content

Commit

Permalink
Merge pull request #184 from spatie/feature/array-shape-create-phpdoc
Browse files Browse the repository at this point in the history
Add array-shape create() PHPDoc
  • Loading branch information
kylekatarnls authored Dec 9, 2021
2 parents 693149d + 20e101a commit e3ba90f
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions src/OpeningHours.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,18 @@ public function __construct($timezone = null)
}

/**
* @param string[][] $data
* @param array{
* monday?: array<string|array>,
* tuesday?: array<string|array>,
* wednesday?: array<string|array>,
* thursday?: array<string|array>,
* friday?: array<string|array>,
* saturday?: array<string|array>,
* sunday?: array<string|array>,
* exceptions?: array<array<string|array>>,
* filters?: callable[],
* overflow?: bool,
* } $data
* @param string|DateTimeZone|null $timezone
* @return static
*/
Expand Down Expand Up @@ -119,7 +130,18 @@ public static function mergeOverlappingRanges(array $data, array $excludedKeys =
}

/**
* @param string[][] $data
* @param array{
* monday?: array<string|array>,
* tuesday?: array<string|array>,
* wednesday?: array<string|array>,
* thursday?: array<string|array>,
* friday?: array<string|array>,
* saturday?: array<string|array>,
* sunday?: array<string|array>,
* exceptions?: array<array<string|array>>,
* filters?: callable[],
* overflow?: bool,
* } $data
* @param string|DateTimeZone|null $timezone
* @return static
*/
Expand Down

0 comments on commit e3ba90f

Please sign in to comment.