Skip to content

Commit

Permalink
Code: add types
Browse files Browse the repository at this point in the history
  • Loading branch information
f3l1x committed Jul 31, 2023
1 parent 55a2fa3 commit b85bf8f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
7 changes: 3 additions & 4 deletions src/BlueScreen/ContainerBuilderDefinitionsBlueScreen.php
Expand Up @@ -11,8 +11,7 @@
class ContainerBuilderDefinitionsBlueScreen
{

/** @var ContainerBuilder */
private $builder;
private ContainerBuilder $builder;

public function __construct(ContainerBuilder $builder)
{
Expand All @@ -39,8 +38,8 @@ public function __invoke(?Throwable $e): ?array
$parts = [];

// Single definition
preg_match("#Class .+ used in service '([a-zA-Z0-9_]+)' not found.#", $e->getMessage(), $matches);
if ($matches) {
$ret = preg_match("#Class .+ used in service '([a-zA-Z0-9_]+)' not found.#", $e->getMessage(), $matches);
if ($ret !== false) {
[, $serviceName] = $matches;
$parts[] = sprintf(
"<div><h3>Definition for '%s'</h3>%s</div>",
Expand Down
3 changes: 1 addition & 2 deletions src/BlueScreen/ContainerBuilderParametersBlueScreen.php
Expand Up @@ -11,8 +11,7 @@
class ContainerBuilderParametersBlueScreen
{

/** @var ContainerBuilder */
private $builder;
private ContainerBuilder $builder;

public function __construct(ContainerBuilder $builder)
{
Expand Down

0 comments on commit b85bf8f

Please sign in to comment.