mirror of
https://github.com/flarum/framework.git
synced 2025-01-21 04:43:17 +08:00
Fix order of array_first arguments
As per https://laravel.com/docs/5.3/upgrade (under "Arrays")
This commit is contained in:
parent
56231d61be
commit
a0621e85bf
|
@ -64,7 +64,7 @@ class DiscussionController extends FrontendController
|
||||||
$document = $this->getDocument($request->getAttribute('actor'), $params);
|
$document = $this->getDocument($request->getAttribute('actor'), $params);
|
||||||
|
|
||||||
$getResource = function ($link) use ($document) {
|
$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;
|
return $value->type === $link->type && $value->id === $link->id;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user