Files
Investidor-V2/tools/portal-next-static-qa.php
nala 287e991486
tests / ci (push) Waiting to run
oportunidades 7
2026-10-13 11:40:29 +02:00

17 lines
664 B
PHP

<?php
use Illuminate\Contracts\Console\Kernel;
// Run repository static analysis with the same isolated QA configuration guard.
require dirname(__DIR__).'/vendor/autoload.php';
require __DIR__.'/portal-qa-environment.php';
$qaTarget = portalQaEnvironment();
$app = require dirname(__DIR__).'/bootstrap/app.php';
$app->make(Kernel::class)->bootstrap();
portalQaAssertTarget($qaTarget);
$_SERVER['argv'] = [dirname(__DIR__).'/vendor/bin/phpstan', 'analyse', '--no-progress', '--error-format=json', '--memory-limit=1G'];
$_SERVER['argc'] = count($_SERVER['argv']);
$argv = $_SERVER['argv'];
$argc = $_SERVER['argc'];
require dirname(__DIR__).'/vendor/bin/phpstan';