mirror of
https://github.com/flarum/core.git
synced 2025-06-25 04:02:33 +02:00
test: patch phpstan error
Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>
This commit is contained in:
@ -44,7 +44,6 @@ class LoadLikesRelationship
|
|||||||
$loadable = null;
|
$loadable = null;
|
||||||
|
|
||||||
if ($data instanceof Discussion) {
|
if ($data instanceof Discussion) {
|
||||||
// @phpstan-ignore-next-line
|
|
||||||
$loadable = $data->newCollection($data->posts)->filter(function ($post) {
|
$loadable = $data->newCollection($data->posts)->filter(function ($post) {
|
||||||
return $post instanceof Post;
|
return $post instanceof Post;
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user