From 214e23b1a0be40e5c0f11d5578bbbb4092279935 Mon Sep 17 00:00:00 2001 From: Nasser Hekmati Date: Sun, 25 Oct 2026 12:52:06 +0330 Subject: [PATCH] fix: type declarations helper function --- src/helpers.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); }