1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 13:14:05 +00:00

Remove redundant passing of $withPending to runForMultiple in TenantCollection's runForEach

This commit is contained in:
lukinovec 2022-09-30 10:16:47 +02:00
parent 1e04835536
commit bd8a1aa2ce

View file

@ -17,9 +17,9 @@ use Stancl\Tenancy\Contracts\Tenant;
*/
class TenantCollection extends Collection
{
public function runForEach(Closure $callable, bool $withPending = null): self
public function runForEach(Closure $callable): self
{
tenancy()->runForMultiple($this->items, $callable, $withPending);
tenancy()->runForMultiple($this->items, $callable);
return $this;
}