Skip to content

Commit

Permalink
Add a dockblock to have a more precise return type
Browse files Browse the repository at this point in the history
  • Loading branch information
Mopolo committed Nov 20, 2020
1 parent 22748c0 commit 41789ca
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/MagicConstant.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,10 @@ public function in(array $values): bool
return false;
}

/**
* @param string $format
* @return static
*/
public function toFormat(string $format): self
{
return new static($this->getValue($format));
Expand Down

0 comments on commit 41789ca

Please sign in to comment.