1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-06-20 22:04:02 +00:00

Ignore PHPStan error

PHPStan complains that createDatabaseDriver is a protected method on CacheManager. Since PHPStan doesn't handle $this in the extend()'s closure well, I'm adding an ignore.
This commit is contained in:
lukinovec 2026-06-13 07:25:16 +02:00
parent f65b05549f
commit ff8f73ec08

View file

@ -104,7 +104,7 @@ class TenancyServiceProvider extends ServiceProvider
$config['connection'] ??= $centralConnection;
/** @var CacheManager $this */
return $this->createDatabaseDriver($config);
return $this->createDatabaseDriver($config); // @phpstan-ignore method.protected
});
// DatabaseCacheBootstrapper explicitly writes 'tenant' into each store's 'connection'