mirror of
https://github.com/beste/clock.git
synced 2026-10-17 19:27:35 +00:00
Type time zone input
This commit is contained in:
@@ -19,10 +19,7 @@ final class LocalizedClock implements ClockInterface
|
||||
$this->timeZone = $timeZone;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param DateTimeZone|string $timeZone
|
||||
*/
|
||||
public static function in($timeZone): self
|
||||
public static function in(DateTimeZone|string $timeZone): self
|
||||
{
|
||||
if (is_string($timeZone)) {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user