mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 12:24:04 +00:00
Fix PHPStan error
This commit is contained in:
parent
d4025fb886
commit
26eafd30ba
1 changed files with 4 additions and 1 deletions
|
|
@ -29,7 +29,10 @@ class CreateRLSPoliciesForTenantTables extends Command
|
|||
protected function getTenantTables(): array
|
||||
{
|
||||
return array_map(function (SplFileInfo $migration) {
|
||||
return str($migration)->after('create_')->before('_table')->toString();
|
||||
return str($migration->getFilename())
|
||||
->after('create_')
|
||||
->before('_table')
|
||||
->toString();
|
||||
}, File::files('./database/migrations/tenant'));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue