From 91936bc5abb5ff7648fe30b87363291a0babfda6 Mon Sep 17 00:00:00 2001 From: lukinovec Date: Fri, 21 Apr 2023 15:36:00 +0200 Subject: [PATCH] Fix PHPStan error --- src/Commands/CreateRLSPoliciesForTenantTables.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Commands/CreateRLSPoliciesForTenantTables.php b/src/Commands/CreateRLSPoliciesForTenantTables.php index 529f90a1..d566e39e 100644 --- a/src/Commands/CreateRLSPoliciesForTenantTables.php +++ b/src/Commands/CreateRLSPoliciesForTenantTables.php @@ -29,7 +29,7 @@ class CreateRLSPoliciesForTenantTables extends Command protected function getTenantTables(): array { $files = array_filter(File::files('./database/migrations/tenant'), function (SplFileInfo $migration) { - return str($migration)->contains('create_'); + return str($migration->getFilename())->contains('create_'); }); return array_map(function (SplFileInfo $migration) {