add trend UX + PHPStan level 6 clean (0 errors)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Gwadaking
2026-04-03 16:06:13 -04:00
parent 997e2d186c
commit 0d323b871b
26 changed files with 471 additions and 78 deletions

View File

@@ -0,0 +1,13 @@
<?php
use App\Kernel;
require_once __DIR__ . '/../vendor/autoload.php';
// Variables minimales pour booter le kernel sans vraie DB
$_ENV['DATABASE_URL'] = $_ENV['DATABASE_URL'] ?? 'postgresql://user:pass@localhost:5432/phpstan_dummy?serverVersion=16';
$_ENV['APP_SECRET'] = $_ENV['APP_SECRET'] ?? 'phpstan-dummy-secret';
$_SERVER['DATABASE_URL'] = $_ENV['DATABASE_URL'];
$_SERVER['APP_SECRET'] = $_ENV['APP_SECRET'];
$kernel = new Kernel('dev', true);
$kernel->boot();
return $kernel->getContainer()->get('doctrine')->getManager();