1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 14:14:03 +00:00

Fix PHPStan error

This commit is contained in:
lukinovec 2023-02-13 15:42:46 +01:00
parent d4025fb886
commit 26eafd30ba

View file

@ -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'));
}
}