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

Fix PHPStan error

This commit is contained in:
lukinovec 2023-02-13 15:36:23 +01:00
parent e3e85b3ffa
commit d4025fb886

View file

@ -7,6 +7,7 @@ namespace Stancl\Tenancy\Commands;
use Illuminate\Console\Command; use Illuminate\Console\Command;
use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\File; use Illuminate\Support\Facades\File;
use Symfony\Component\Finder\SplFileInfo;
class CreateRLSPoliciesForTenantTables extends Command class CreateRLSPoliciesForTenantTables extends Command
{ {
@ -27,7 +28,7 @@ class CreateRLSPoliciesForTenantTables extends Command
protected function getTenantTables(): array protected function getTenantTables(): array
{ {
return array_map(function (string $migration) { return array_map(function (SplFileInfo $migration) {
return str($migration)->after('create_')->before('_table')->toString(); return str($migration)->after('create_')->before('_table')->toString();
}, File::files('./database/migrations/tenant')); }, File::files('./database/migrations/tenant'));
} }