Skip to content

Commit

Permalink
Improve type hinting
Browse files Browse the repository at this point in the history
  • Loading branch information
brendt committed Apr 5, 2019
1 parent 66bde60 commit 5628d25
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions src/Period.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
{
Expand Down Expand Up @@ -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
{
Expand Down

0 comments on commit 5628d25

Please sign in to comment.