Skip to content

Commit

Permalink
Update src/HandlerResolver.php
Browse files Browse the repository at this point in the history
  • Loading branch information
allan-simon authored Aug 27, 2024
1 parent b979a9f commit 9488115
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/HandlerResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@ private function symfonyContainer(?string $bootstrapFile = null): ContainerInter
}
$runtimeClass = $_SERVER['APP_RUNTIME'] ?? $_ENV['APP_RUNTIME'] ?? '\\Bref\\SymfonyBridge\\Runtime\\BrefRuntime';
$runtime = new $runtimeClass($options);
if (!$runtime instanceof \Symfony\Component\Runtime\SymfonyRuntime) {

Check failure on line 118 in src/HandlerResolver.php

View workflow job for this annotation

GitHub Actions / PHPCS

Expected 1 space after NOT operator; 0 found

Check failure on line 118 in src/HandlerResolver.php

View workflow job for this annotation

GitHub Actions / PHPCS

Class \Symfony\Component\Runtime\SymfonyRuntime should not be referenced via a fully qualified name, but via a use statement.
throw new \RuntimeException("The runtime class '$runtimeClass' must extend Symfony\Component\Runtime\SymfonyRuntime.");
}
}

Check failure on line 121 in src/HandlerResolver.php

View workflow job for this annotation

GitHub Actions / PHPCS

Line indented incorrectly; expected 8 spaces, found 0

Check failure on line 121 in src/HandlerResolver.php

View workflow job for this annotation

GitHub Actions / PHPCS

Closing brace indented incorrectly; expected 8 spaces, found 0

[$app, $args] = $runtime
->getResolver($app)
Expand Down

0 comments on commit 9488115

Please sign in to comment.