From ac0a9e05674399d72bb6b53cdd6156a3de662c43 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Tue, 26 Dec 2017 20:38:15 +1030 Subject: [PATCH] Fix order of array_first arguments As per https://laravel.com/docs/5.3/upgrade (under "Arrays") --- framework/core/src/Forum/Controller/DiscussionController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/core/src/Forum/Controller/DiscussionController.php b/framework/core/src/Forum/Controller/DiscussionController.php index 931141561..1c16d4669 100644 --- a/framework/core/src/Forum/Controller/DiscussionController.php +++ b/framework/core/src/Forum/Controller/DiscussionController.php @@ -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; }); };