@@ -86,15 +86,15 @@ public function now(): CarbonInterface
8686 /**
8787 * Configure given date for the application's current timezone.
8888 */
89- public function date (mixed $ value , callable $ maker = null ): CarbonInterface
89+ public function date (mixed $ value , ? callable $ maker = null ): CarbonInterface
9090 {
9191 return $ this ->makeDateWithCurrent ($ value , $ maker );
9292 }
9393
9494 /**
9595 * Configure given date for the database storage timezone.
9696 */
97- public function store (mixed $ value , callable $ maker = null ): CarbonInterface
97+ public function store (mixed $ value , ? callable $ maker = null ): CarbonInterface
9898 {
9999 return $ this ->makeDateWithStorage ($ value , $ maker );
100100 }
@@ -118,7 +118,7 @@ protected function convertToStorage(CarbonInterface $date): CarbonInterface
118118 /**
119119 * Create or configure date using the application's current timezone.
120120 */
121- protected function makeDateWithCurrent (mixed $ value , callable $ maker = null ): CarbonInterface
121+ protected function makeDateWithCurrent (mixed $ value , ? callable $ maker = null ): CarbonInterface
122122 {
123123 return is_a ($ value , CarbonInterface::class)
124124 ? $ this ->convertToCurrent ($ value )
@@ -128,7 +128,7 @@ protected function makeDateWithCurrent(mixed $value, callable $maker = null): Ca
128128 /**
129129 * Create or configure date using the database's storage timezone.
130130 */
131- protected function makeDateWithStorage (mixed $ value , callable $ maker = null ): CarbonInterface
131+ protected function makeDateWithStorage (mixed $ value , ? callable $ maker = null ): CarbonInterface
132132 {
133133 return is_a ($ value , CarbonInterface::class)
134134 ? $ this ->convertToStorage ($ value )
@@ -138,7 +138,7 @@ protected function makeDateWithStorage(mixed $value, callable $maker = null): Ca
138138 /**
139139 * Create a date using the provided timezone.
140140 */
141- protected function makeDate (mixed $ value , CarbonTimeZone $ timezone , callable $ maker = null ): CarbonInterface
141+ protected function makeDate (mixed $ value , CarbonTimeZone $ timezone , ? callable $ maker = null ): CarbonInterface
142142 {
143143 return ($ maker )
144144 ? call_user_func ($ maker , $ value , $ timezone )
0 commit comments