Fix phpstan
continuous-integration/drone/push Build is failing Details

This commit is contained in:
philipp lang 2024-09-22 18:25:31 +02:00
parent d30a2336cf
commit 664b88564d
2 changed files with 7 additions and 2 deletions

View File

@ -13,8 +13,8 @@ class TestersBlock extends Block
*/ */
public function query(): Builder public function query(): Builder
{ {
return Member::with('memberships', fn ($q) => $q->isTrying()) return Member::whereHas('memberships', fn ($q) => $q->isTrying())
->whereHas('memberships', fn ($q) => $q->isTrying()); ->with('memberships', fn ($q) => $q->isTrying());
} }
/** /**

View File

@ -502,3 +502,8 @@ parameters:
message: "#^Call to an undefined method Phake\\\\Proxies\\\\VerifierProxy\\:\\:handle\\(\\)\\.$#" message: "#^Call to an undefined method Phake\\\\Proxies\\\\VerifierProxy\\:\\:handle\\(\\)\\.$#"
count: 2 count: 2
path: tests/Feature/Member/NamiPutMemberActionTest.php path: tests/Feature/Member/NamiPutMemberActionTest.php
-
message: "#^Call to an undefined method Illuminate\\\\Database\\\\Eloquent\\\\Relations\\\\Relation\\<\\*, \\*, \\*\\>\\:\\:isTrying\\(\\)\\.$#"
count: 1
path: app/Membership/TestersBlock.php