Skip to content

Commit 1cac97d

Browse files
authored
Merge branch 'develop' into ari/tests-2025-11-17
2 parents bdfc9bf + d29cf4f commit 1cac97d

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

classes/utils/class-date.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,7 @@ class Date {
1818
* @param \DateTime $start_date The start date.
1919
* @param \DateTime $end_date The end date.
2020
*
21-
* @return array [
22-
* 'start_date' => \DateTime,
23-
* 'end_date' => \DateTime,
24-
* ].
21+
* @return array <array<string, \DateTime>>
2522
*/
2623
public function get_range( $start_date, $end_date ) {
2724
$dates = \iterator_to_array( new \DatePeriod( $start_date, new \DateInterval( 'P1D' ), $end_date ), false );
@@ -38,7 +35,7 @@ public function get_range( $start_date, $end_date ) {
3835
* @param \DateTime $end_date The end date.
3936
* @param string $frequency The frequency. Can be 'daily', 'weekly', 'monthly'.
4037
*
41-
* @return array
38+
* @return array <array{start_date: \DateTime, end_date: \DateTime}>
4239
*/
4340
public function get_periods( $start_date, $end_date, $frequency ) {
4441
$end_date->modify( '+1 day' );

0 commit comments

Comments
 (0)