Skip to content

Commit 312ab46

Browse files
committed
TASK: Fix last phpstan error
1 parent 8b426c7 commit 312ab46

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

phpstan-baseline.neon

Lines changed: 0 additions & 6 deletions
This file was deleted.

phpstan.neon

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
includes:
2-
- phpstan-baseline.neon
31
parameters:
42
level: 8
53
editorUrl: 'phpstorm://open?file=%%file%%&line=%%line%%'

src/Cli/Symfony/ConsoleKernel.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,13 @@ private function initializeContainer(): void
105105

106106
if (file_exists($file)) {
107107
require_once $file;
108+
if (!class_exists(\ProjectServiceContainer::class, false)) {
109+
throw new \UnexpectedValueException('Class ProjectServiceContainer does not exist');
110+
}
111+
108112
/** @var Container $container */
109113
$container = new \ProjectServiceContainer();
114+
110115
} else {
111116
$container = new ContainerBuilder();
112117
$loader = new PhpFileLoader($container, new FileLocator());

0 commit comments

Comments
 (0)