mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
Update method signatures for Laravel contracts
This commit is contained in:
committed by
HolgerHatGarKeineNode
parent
add2ff71e6
commit
ad55c69b51
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Rules;
|
||||
|
||||
use Closure;
|
||||
use App\Models\MeetupEvent;
|
||||
use Illuminate\Contracts\Validation\InvokableRule;
|
||||
|
||||
@@ -17,7 +18,7 @@ class UniqueAttendeeName implements InvokableRule
|
||||
//
|
||||
}
|
||||
|
||||
public function __invoke($attribute, $value, $fail)
|
||||
public function __invoke(string $attribute, mixed $value, Closure $fail)
|
||||
{
|
||||
$this->meetupEvent->refresh();
|
||||
$attendees = collect($this->meetupEvent->attendees);
|
||||
|
||||
Reference in New Issue
Block a user