Skip to content

Commit

Permalink
Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
paranoiq committed Jul 13, 2021
1 parent 78d32e2 commit db6975a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Time/DateTime.php
Original file line number Diff line number Diff line change
Expand Up @@ -351,11 +351,10 @@ public function setTime($time, $minutes = null, $seconds = null, $microseconds =
}

/**
* @phpcsSuppress SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingNativeTypeHint
* @param DateTimeZone|string $timeZone
* @return DateTime
*/
public function setTimezone($timeZone)
public function setTimezone($timeZone): self
{
if (!$timeZone instanceof DateTimeZone) {
$timeZone = new DateTimeZone($timeZone);
Expand Down

0 comments on commit db6975a

Please sign in to comment.