Fix order of array_first arguments

As per https://laravel.com/docs/5.3/upgrade (under "Arrays")
This commit is contained in:
Toby Zerner 2017-12-26 20:38:15 +10:30
parent 56231d61be
commit a0621e85bf

View File

@ -64,7 +64,7 @@ class DiscussionController extends FrontendController
$document = $this->getDocument($request->getAttribute('actor'), $params);
$getResource = function ($link) use ($document) {
return array_first($document->included, function ($key, $value) use ($link) {
return array_first($document->included, function ($value, $key) use ($link) {
return $value->type === $link->type && $value->id === $link->id;
});
};