8000 Fix static analysis · allan-simon/symfony-bridge@3160d41 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3160d41

Browse files
committed
Fix static analysis
1 parent c0dcfdc commit 3160d41

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/HandlerResolver.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,11 @@ private function symfonyContainer(?string $bootstrapFile = null): ContainerInter
9898

9999
$app = require $bootstrapFile;
100100

101-
if (!is_object($app)) {
101+
if (! is_object($app)) {
102102
throw new Exception(sprintf(
103103
"The '%s' file must return an anonymous function (that returns the Symfony Kernel). Instead it returned '%s'. Either edit the file to return an anonymous function, or create a separate file (follow the online documentation 5254 to do so).",
104104
$bootstrapFile,
105+
// @phpstan-ignore-next-line
105106
is_object($app) ? get_class($app) : gettype($app),
106107
));
107108
}

0 commit comments

Comments
 (0)
0