Skip to content

Commit c5d93be

Browse files
committed
Merge branch 'v2' of github.com:pixelandtonic/ElementAPI into v2
2 parents d0c14cd + a465bc6 commit c5d93be

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ Possible values are:
245245
The [include names](http://fractal.thephpleague.com/transformers/#including-data) that should be included for the current request, if any.
246246

247247
```php
248-
'includes' => Craft::$app->request->getQueryParam('include'),
248+
'includes' => (array)Craft::$app->request->getQueryParam('include'),
249249
```
250250

251251
Note that this setting requires a custom transformer class that’s prepped to handle includes:

0 commit comments

Comments
 (0)