@@ -78,7 +78,7 @@ public function __construct(
7878 $ this ->timezone = $ timezone ;
7979 }
8080
81- public static function now (\DateTimeZone $ timeZone = null ): Jalalian
81+ public static function now (? \DateTimeZone $ timeZone = null ): Jalalian
8282 {
8383 return static ::fromCarbon (Carbon::now ($ timeZone ));
8484 }
@@ -102,12 +102,12 @@ public static function fromCarbon(Carbon $carbon): Jalalian
102102 );
103103 }
104104
105- public static function fromFormat (string $ format , string $ timestamp , \DateTimeZone $ timeZone = null ): Jalalian
105+ public static function fromFormat (string $ format , string $ timestamp , ? \DateTimeZone $ timeZone = null ): Jalalian
106106 {
107107 return static ::fromCarbon (CalendarUtils::createCarbonFromFormat ($ format , $ timestamp , $ timeZone ));
108108 }
109109
110- public static function forge ($ timestamp , \DateTimeZone $ timeZone = null ): Jalalian
110+ public static function forge ($ timestamp , ? \DateTimeZone $ timeZone = null ): Jalalian
111111 {
112112 return static ::fromDateTime ($ timestamp , $ timeZone );
113113 }
@@ -117,7 +117,7 @@ public static function forge($timestamp, \DateTimeZone $timeZone = null): Jalali
117117 * @param \DateTimeZone|null $timeZone
118118 * @return Jalalian
119119 */
120- public static function fromDateTime ($ dateTime , \DateTimeZone $ timeZone = null ): Jalalian
120+ public static function fromDateTime ($ dateTime , ? \DateTimeZone $ timeZone = null ): Jalalian
121121 {
122122 if (is_numeric ($ dateTime )) {
123123 return static ::fromCarbon (Carbon::createFromTimestamp ($ dateTime , $ timeZone ));
0 commit comments