Skip to content

Commit c031165

Browse files
committed
chore: Fix PHPStan errors
1 parent d55b955 commit c031165

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/Bud.php

+9-3
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,20 @@ public function config(string $service, string $name, ?array $default = null, ?s
7979
throw TenancyMissingException::make();
8080
}
8181

82+
/** @var \Sprout\Contracts\Tenancy<\Sprout\Contracts\Tenant> $tenancy */
83+
$tenancy = $this->getTenancy();
84+
8285
if (! $this->hasTenant()) {
83-
throw TenantMissingException::make($this->getTenancy()->getName());
86+
throw TenantMissingException::make($tenancy->getName());
8487
}
8588

89+
/** @var \Sprout\Contracts\Tenant $tenant */
90+
$tenant = $this->getTenant();
91+
8692
return $this->store($store)
8793
->get(
88-
$this->getTenancy(), /** @phpstan-ignore argument.type */
89-
$this->getTenant(), /** @phpstan-ignore argument.type */
94+
$tenancy,
95+
$tenant,
9096
$service,
9197
$name,
9298
$default

0 commit comments

Comments
 (0)