mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-14 00:34:03 +00:00
get down to 59 phpstan errors
This commit is contained in:
parent
193e044777
commit
a94227a19c
26 changed files with 130 additions and 130 deletions
|
|
@ -13,18 +13,13 @@ use Stancl\Tenancy\Contracts\Tenant;
|
|||
|
||||
class CacheTenancyBootstrapper implements TenancyBootstrapper
|
||||
{
|
||||
/** @var CacheManager */
|
||||
protected $originalCache;
|
||||
protected ?CacheManager $originalCache = null;
|
||||
|
||||
/** @var Application */
|
||||
protected $app;
|
||||
public function __construct(
|
||||
protected Application $app
|
||||
) {}
|
||||
|
||||
public function __construct(Application $app)
|
||||
{
|
||||
$this->app = $app;
|
||||
}
|
||||
|
||||
public function bootstrap(Tenant $tenant)
|
||||
public function bootstrap(Tenant $tenant): void
|
||||
{
|
||||
$this->resetFacadeCache();
|
||||
|
||||
|
|
@ -34,7 +29,7 @@ class CacheTenancyBootstrapper implements TenancyBootstrapper
|
|||
});
|
||||
}
|
||||
|
||||
public function revert()
|
||||
public function revert(): void
|
||||
{
|
||||
$this->resetFacadeCache();
|
||||
|
||||
|
|
@ -50,7 +45,7 @@ class CacheTenancyBootstrapper implements TenancyBootstrapper
|
|||
* facade has been made prior to bootstrapping tenancy. The
|
||||
* facade has its own cache, separate from the container.
|
||||
*/
|
||||
public function resetFacadeCache()
|
||||
public function resetFacadeCache(): void
|
||||
{
|
||||
Cache::clearResolvedInstances();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue