Completed
Push — master ( 2ccf17...6fec8e )
by ignace nyamagana
9s
created
src/Period.php 1 patch
Doc Comments   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -406,7 +406,7 @@  discard block
 block discarded – undo
406 406
     /**
407 407
      * Returns the Period duration as expressed in seconds
408 408
      *
409
-     * @return float
409
+     * @return integer
410 410
      */
411 411
     public function getTimestampInterval()
412 412
     {
@@ -523,7 +523,7 @@  discard block
 block discarded – undo
523 523
      * Tells whether the specified index is fully contained within
524 524
      * the current Period object.
525 525
      *
526
-     * @param Period|DateTimeInterface|string $index
526
+     * @param DateTimeImmutable $index
527 527
      *
528 528
      * @return bool
529 529
      */
@@ -631,7 +631,7 @@  discard block
 block discarded – undo
631 631
     /**
632 632
      * Returns a new Period object with a new included starting date point.
633 633
      *
634
-     * @param DateTimeInterface|string $startDate date point
634
+     * @param DateTimeImmutable $startDate date point
635 635
      *
636 636
      * @return static
637 637
      */
@@ -643,7 +643,7 @@  discard block
 block discarded – undo
643 643
     /**
644 644
      * Returns a new Period object with a new ending date point.
645 645
      *
646
-     * @param DateTimeInterface|string $endDate date point
646
+     * @param DateTimeImmutable $endDate date point
647 647
      *
648 648
      * @return static
649 649
      */
@@ -662,7 +662,7 @@  discard block
 block discarded – undo
662 662
      * <li>a string in a format supported by DateInterval::createFromDateString</li>
663 663
      * </ul>
664 664
      *
665
-     * @param DateInterval|int|string $interval The interval
665
+     * @param DateInterval $interval The interval
666 666
      *
667 667
      * @return static
668 668
      */
@@ -888,7 +888,7 @@  discard block
 block discarded – undo
888 888
      *
889 889
      * @param DateInterval|int|string $interval The interval
890 890
      *
891
-     * @return Generator|Period[]
891
+     * @return Generator
892 892
      */
893 893
     public function split($interval)
894 894
     {
@@ -917,7 +917,7 @@  discard block
 block discarded – undo
917 917
      *
918 918
      * @param DateInterval|int|string $interval The interval
919 919
      *
920
-     * @return Generator|Period[]
920
+     * @return Generator
921 921
      */
922 922
     public function splitBackwards($interval)
923 923
     {
@@ -976,7 +976,7 @@  discard block
 block discarded – undo
976 976
      *
977 977
      * @param Period $period
978 978
      *
979
-     * @return float
979
+     * @return integer
980 980
      */
981 981
     public function timestampIntervalDiff(Period $period)
982 982
     {
@@ -1037,8 +1037,8 @@  discard block
 block discarded – undo
1037 1037
      * The datepoints will be used as to allow the creation of
1038 1038
      * a Period object
1039 1039
      *
1040
-     * @param DateTimeInterface|string $datePoint1 datepoint
1041
-     * @param DateTimeInterface|string $datePoint2 datepoint
1040
+     * @param DateTimeImmutable $datePoint1 datepoint
1041
+     * @param DateTimeImmutable $datePoint2 datepoint
1042 1042
      *
1043 1043
      * @return Period
1044 1044
      */
Please login to merge, or discard this patch.