@@ -50,7 +50,7 @@ public function __construct(
5050 *
5151 * @return string|Booking String with error message or a Booking
5252 */
53- public function bookNormal (Tool $ tool , Carbon $ start , Carbon $ end , User $ user = null )
53+ public function bookNormal (Tool $ tool , Carbon $ start , Carbon $ end , ? User $ user = null )
5454 {
5555 if (is_null ($ user )) {
5656 $ user = Auth::user ();
@@ -100,7 +100,7 @@ public function bookNormal(Tool $tool, Carbon $start, Carbon $end, User $user =
100100 *
101101 * @return string|Booking String with error message or a Booking
102102 */
103- public function bookInduction (Tool $ tool , Carbon $ start , Carbon $ end , User $ user = null )
103+ public function bookInduction (Tool $ tool , Carbon $ start , Carbon $ end , ? User $ user = null )
104104 {
105105 if (is_null ($ user )) {
106106 $ user = Auth::user ();
@@ -143,7 +143,7 @@ public function bookInduction(Tool $tool, Carbon $start, Carbon $end, User $user
143143 *
144144 * @return string|Booking String with error message or a Booking
145145 */
146- public function bookMaintenance (Tool $ tool , Carbon $ start , Carbon $ end , User $ user = null )
146+ public function bookMaintenance (Tool $ tool , Carbon $ start , Carbon $ end , ? User $ user = null )
147147 {
148148 if (is_null ($ user )) {
149149 $ user = Auth::user ();
@@ -190,7 +190,7 @@ public function bookMaintenance(Tool $tool, Carbon $start, Carbon $end, User $us
190190 *
191191 * @return string|Booking String with error message or a Booking
192192 */
193- public function update (Tool $ tool , Booking $ booking , Carbon $ start = null , Carbon $ end = null )
193+ public function update (Tool $ tool , Booking $ booking , ? Carbon $ start = null , ? Carbon $ end = null )
194194 {
195195 $ user = Auth::user ();
196196
0 commit comments