Skip to content

Commit

Permalink
Templates in DatePeriod can be covariant
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Jan 26, 2023
1 parent 6162dad commit ce65e05
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions stubs/date.stub
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

/**
* @template TDate of DateTimeInterface
* @template TEnd of ?DateTimeInterface
* @template TRecurrences of ?int
* @template-covariant TDate of DateTimeInterface
* @template-covariant TEnd of ?DateTimeInterface
* @template-covariant TRecurrences of ?int
* @implements \IteratorAggregate<int, TDate>
* @implements \Traversable<int, TDate>
*/
Expand Down

0 comments on commit ce65e05

Please sign in to comment.