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;
|
$this->timeZone = $timeZone;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
public static function in(DateTimeZone|string $timeZone): self
|
||||||
* @param DateTimeZone|string $timeZone
|
|
||||||
*/
|
|
||||||
public static function in($timeZone): self
|
|
||||||
{
|
{
|
||||||
if (is_string($timeZone)) {
|
if (is_string($timeZone)) {
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user