diff --git a/src/helpers.php b/src/helpers.php index 1768be8..8abd93d 100644 --- a/src/helpers.php +++ b/src/helpers.php @@ -5,11 +5,11 @@ use Hekmatinasser\Verta\Verta; if (! function_exists('verta')) { /** - * @param Jalali|DateTime|string|int|null $datetime - * @param DateTimeZone|string|null $timezone + * @param DateTime|int|string|Jalali|null $datetime + * @param DateTimeZone|string|null $timezone * @return Verta */ - function verta($datetime = null, $timezone = null): Verta + function verta(DateTime|int|string|Jalali $datetime = null, DateTimeZone|string $timezone = null): Verta { return new Verta($datetime, $timezone); }