File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ Activity::forBatch($uuid)->get(); // all the activity that happend in the batch
127127``` php
128128class SomeJob
129129{
130- public function handle(string $value, string $batchUuid = null)
130+ public function handle(string $value, ? string $batchUuid = null)
131131 {
132132 LogBatch::startBatch();
133133 if($batchUuid) LogBatch::setBatch($batchUuid);
Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ public function inLog(?string $logName): static
133133 return $ this ->useLog ($ logName );
134134 }
135135
136- public function tap (callable $ callback , string $ eventName = null ): static
136+ public function tap (callable $ callback , ? string $ eventName = null ): static
137137 {
138138 call_user_func ($ callback , $ this ->getActivity (), $ eventName );
139139
Original file line number Diff line number Diff line change 44use Spatie \Activitylog \ActivityLogStatus ;
55
66if (! function_exists ('activity ' )) {
7- function activity (string $ logName = null ): ActivityLogger
7+ function activity (? string $ logName = null ): ActivityLogger
88 {
99 $ defaultLogName = config ('activitylog.default_log_name ' );
1010
You can’t perform that action at this time.
0 commit comments