mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 08:24:05 +00:00
Fix PHPStan error
This commit is contained in:
parent
e3e85b3ffa
commit
d4025fb886
1 changed files with 2 additions and 1 deletions
|
|
@ -7,6 +7,7 @@ namespace Stancl\Tenancy\Commands;
|
|||
use Illuminate\Console\Command;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Facades\File;
|
||||
use Symfony\Component\Finder\SplFileInfo;
|
||||
|
||||
class CreateRLSPoliciesForTenantTables extends Command
|
||||
{
|
||||
|
|
@ -27,7 +28,7 @@ class CreateRLSPoliciesForTenantTables extends Command
|
|||
|
||||
protected function getTenantTables(): array
|
||||
{
|
||||
return array_map(function (string $migration) {
|
||||
return array_map(function (SplFileInfo $migration) {
|
||||
return str($migration)->after('create_')->before('_table')->toString();
|
||||
}, File::files('./database/migrations/tenant'));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue