Corrigir os dois erros do PHPStan
- private-audit: env() pode devolver bool; só descodifica JSON quando é texto. - migração de rascunhos: recriar triggers SQLite com DB::statement. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -61,7 +61,8 @@ return new class extends Migration
|
||||
{
|
||||
foreach ($triggers as $name => $sql) {
|
||||
if (! DB::table('sqlite_master')->where('type', 'trigger')->where('name', $name)->exists()) {
|
||||
DB::unprepared($sql);
|
||||
// Re-create the trigger exactly as SQLite stored it before the table rebuild.
|
||||
DB::statement($sql);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user