Skip to content

Commit

Permalink
add return type to TimeInterval::createFromDateString() for PHP 8+
Browse files Browse the repository at this point in the history
  • Loading branch information
nojimage committed Dec 2, 2022
1 parent e859cf0 commit 36187ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ValueObject/TimeInterval.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function __construct($interval_spec)
* @throws UnexpectedValueException
* @throws Exception
*/
public static function createFromDateString($datetime)
public static function createFromDateString($datetime): DateInterval
{
$original = parent::createFromDateString($datetime);

Expand Down

0 comments on commit 36187ab

Please sign in to comment.