Added phpstan-symfony plugin to improve inspections on getArgument and getOption

This commit is contained in:
Alejandro Celaya
2021-07-19 19:59:41 +02:00
parent b8fa234dbb
commit 934d266880
7 changed files with 27 additions and 9 deletions

View File

@@ -4,12 +4,11 @@ declare(strict_types=1);
use Mezzio\Application;
use Psr\Container\ContainerInterface;
use Symfony\Component\Console\Application as CliApp;
return function (bool $isCli = false): void {
return static function (): void {
/** @var ContainerInterface $container */
$container = include __DIR__ . '/container.php';
$app = $container->get($isCli ? CliApp::class : Application::class);
$app = $container->get(Application::class);
$app->run();
};