Skip to content

Commit ff8f73e

Browse files
committed
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.
1 parent f65b055 commit ff8f73e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/TenancyServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public function register(): void
104104
$config['connection'] ??= $centralConnection;
105105

106106
/** @var CacheManager $this */
107-
return $this->createDatabaseDriver($config);
107+
return $this->createDatabaseDriver($config); // @phpstan-ignore method.protected
108108
});
109109

110110
// DatabaseCacheBootstrapper explicitly writes 'tenant' into each store's 'connection'

0 commit comments

Comments
 (0)