diff --git a/CHANGELOG.md b/CHANGELOG.md index 04a55bf..8a4754a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ All notable changes to `period` will be documented in this file +## 1.1.3 - 2019-04-05 + +- Even better docblock support for static return types + ## 1.1.2 - 2019-04-05 - Better docblock support for static return types diff --git a/src/Period.php b/src/Period.php index d23eb03..e77dbbb 100644 --- a/src/Period.php +++ b/src/Period.php @@ -68,7 +68,7 @@ public function __construct( * @param int|null $boundaryExclusionMask * @param string|null $format * - * @return \Spatie\Period\Period&static + * @return static */ public static function make( $start, @@ -269,7 +269,7 @@ public function equals(Period $period): bool /** * @param \Spatie\Period\Period $period * - * @return \Spatie\Period\Period&static|null + * @return static|null * @throws \Exception */ public function gap(Period $period): ?Period @@ -302,7 +302,7 @@ public function gap(Period $period): ?Period /** * @param \Spatie\Period\Period $period * - * @return \Spatie\Period\Period&static|null + * @return static|null */ public function overlapSingle(Period $period): ?Period { @@ -348,7 +348,7 @@ public function overlap(Period ...$periods): PeriodCollection /** * @param \Spatie\Period\Period ...$periods * - * @return \Spatie\Period\Period&static + * @return static */ public function overlapAll(Period ...$periods): Period {