@@ -86,15 +86,15 @@ public function now(): CarbonInterface
86
86
/**
87
87
* Configure given date for the application's current timezone.
88
88
*/
89
- public function date (mixed $ value , callable $ maker = null ): CarbonInterface
89
+ public function date (mixed $ value , ? callable $ maker = null ): CarbonInterface
90
90
{
91
91
return $ this ->makeDateWithCurrent ($ value , $ maker );
92
92
}
93
93
94
94
/**
95
95
* Configure given date for the database storage timezone.
96
96
*/
97
- public function store (mixed $ value , callable $ maker = null ): CarbonInterface
97
+ public function store (mixed $ value , ? callable $ maker = null ): CarbonInterface
98
98
{
99
99
return $ this ->makeDateWithStorage ($ value , $ maker );
100
100
}
@@ -118,7 +118,7 @@ protected function convertToStorage(CarbonInterface $date): CarbonInterface
118
118
/**
119
119
* Create or configure date using the application's current timezone.
120
120
*/
121
- protected function makeDateWithCurrent (mixed $ value , callable $ maker = null ): CarbonInterface
121
+ protected function makeDateWithCurrent (mixed $ value , ? callable $ maker = null ): CarbonInterface
122
122
{
123
123
return is_a ($ value , CarbonInterface::class)
124
124
? $ this ->convertToCurrent ($ value )
@@ -128,7 +128,7 @@ protected function makeDateWithCurrent(mixed $value, callable $maker = null): Ca
128
128
/**
129
129
* Create or configure date using the database's storage timezone.
130
130
*/
131
- protected function makeDateWithStorage (mixed $ value , callable $ maker = null ): CarbonInterface
131
+ protected function makeDateWithStorage (mixed $ value , ? callable $ maker = null ): CarbonInterface
132
132
{
133
133
return is_a ($ value , CarbonInterface::class)
134
134
? $ this ->convertToStorage ($ value )
@@ -138,7 +138,7 @@ protected function makeDateWithStorage(mixed $value, callable $maker = null): Ca
138
138
/**
139
139
* Create a date using the provided timezone.
140
140
*/
141
- protected function makeDate (mixed $ value , CarbonTimeZone $ timezone , callable $ maker = null ): CarbonInterface
141
+ protected function makeDate (mixed $ value , CarbonTimeZone $ timezone , ? callable $ maker = null ): CarbonInterface
142
142
{
143
143
return ($ maker )
144
144
? call_user_func ($ maker , $ value , $ timezone )
0 commit comments