Skip to content

Commit

Permalink
TASK: Fix last phpstan error
Browse files Browse the repository at this point in the history
  • Loading branch information
sabbelasichon committed May 24, 2023
1 parent 8b426c7 commit 312ab46
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
6 changes: 0 additions & 6 deletions phpstan-baseline.neon

This file was deleted.

2 changes: 0 additions & 2 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
includes:
- phpstan-baseline.neon
parameters:
level: 8
editorUrl: 'phpstorm://open?file=%%file%%&line=%%line%%'
Expand Down
5 changes: 5 additions & 0 deletions src/Cli/Symfony/ConsoleKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,13 @@ private function initializeContainer(): void

if (file_exists($file)) {
require_once $file;
if (!class_exists(\ProjectServiceContainer::class, false)) {
throw new \UnexpectedValueException('Class ProjectServiceContainer does not exist');
}

/** @var Container $container */
$container = new \ProjectServiceContainer();

} else {
$container = new ContainerBuilder();
$loader = new PhpFileLoader($container, new FileLocator());
Expand Down

0 comments on commit 312ab46

Please sign in to comment.