1 | <?php |
||
26 | class ActivityLogController extends FOSRestController implements ClassResourceInterface |
||
27 | { |
||
28 | |||
29 | const EXPORT_COLUMN_DELIMITER = ';'; |
||
30 | const EXPORT_FILENAME = 'acitivity-log-export'; |
||
31 | |||
32 | /** |
||
33 | * Returns all fields that can be used by list. |
||
34 | * |
||
35 | * @Get("activity-log/fields") |
||
36 | * |
||
37 | * @return mixed |
||
38 | */ |
||
39 | public function getFieldsAction() |
||
51 | |||
52 | /** |
||
53 | * Shows all activity-log-items. |
||
54 | * |
||
55 | * @param Request $request |
||
56 | * |
||
57 | * @Get("activity-log") |
||
58 | * |
||
59 | * @return \Symfony\Component\HttpFoundation\Response |
||
60 | */ |
||
61 | public function cgetAction(Request $request) |
||
69 | |||
70 | /** |
||
71 | * returns datagrid list of activity-log for export. |
||
72 | * |
||
73 | * @param Request $request |
||
74 | * |
||
75 | * @Get("activity-log/export") |
||
76 | * |
||
77 | * @return Response |
||
78 | */ |
||
79 | public function getActivityLogExportAction(Request $request) |
||
91 | |||
92 | /** |
||
93 | * Create field-descriptor array. |
||
94 | * |
||
95 | * @return FieldDescriptor[] |
||
96 | */ |
||
97 | protected function getFieldDescriptors() |
||
104 | |||
105 | /** |
||
106 | * returns view of files. |
||
107 | * |
||
108 | * @param Request $request |
||
109 | * |
||
110 | * @throws EntityNotFoundException |
||
111 | * |
||
112 | * @return ListRepresentation |
||
113 | */ |
||
114 | protected function getActivityLogs(Request $request) |
||
153 | |||
154 | /** |
||
155 | * @param ListRepresentation $list |
||
156 | * @param string $delimiter |
||
157 | * |
||
158 | * @return string |
||
159 | */ |
||
160 | protected function listToCsv($list, $delimiter) |
||
177 | |||
178 | /** |
||
179 | * @param array $dataLine |
||
180 | * @param string $delimiter |
||
181 | * |
||
182 | * @return string |
||
183 | */ |
||
184 | protected function addLine($dataLine, $delimiter) |
||
199 | |||
200 | /** |
||
201 | * @param string $csv |
||
202 | * |
||
203 | * @return Response |
||
204 | */ |
||
205 | protected function generateCsvResponse($csv) |
||
217 | } |
||
218 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: