Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
12 | public function __construct(array $unknownFields) |
||
13 | { |
||
14 | $this->unknownFields = collect($unknownFields); |
||
15 | |||
16 | $unknownFields = $this->unknownFields->implode(', '); |
||
17 | |||
18 | $message = "Requested field(s) `{$unknownFields}` are not allowed (yet). "; |
||
19 | $message .= "If you want to allow these fields, please make sure to call the QueryBuilder's `allowedFields` method before the `allowedIncludes` method."; |
||
20 | |||
21 | parent::__construct(Response::HTTP_BAD_REQUEST, $message); |
||
22 | } |
||
23 | } |
||
24 |