File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
app/Transformers/Api/Client Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -47,10 +47,10 @@ public function includeActor(ActivityLog $model)
4747 * Transforms any array values in the properties into a countable field for easier
4848 * use within the translation outputs.
4949 */
50- protected function properties (ActivityLog $ model ): array
50+ protected function properties (ActivityLog $ model ): object
5151 {
5252 if (!$ model ->properties || $ model ->properties ->isEmpty ()) {
53- return [];
53+ return ( object ) [];
5454 }
5555
5656 $ properties = $ model ->properties
@@ -76,7 +76,7 @@ protected function properties(ActivityLog $model): array
7676 $ properties = $ properties ->merge (['count ' => $ properties ->get ($ keys [0 ])])->except ($ keys [0 ]);
7777 }
7878
79- return $ properties ->toArray ();
79+ return ( object ) $ properties ->toArray ();
8080 }
8181
8282 /**
You can’t perform that action at this time.
0 commit comments