@@ -49,7 +49,7 @@ |
||
49 | 49 | return $keys; |
50 | 50 | } |
51 | 51 | |
52 | - return array_values(array_filter($keys, function ($item) { |
|
52 | + return array_values(array_filter($keys, function($item) { |
|
53 | 53 | return $item !== PsrContainer::class && !is_subclass_of($item, PsrContainer::class); |
54 | 54 | })); |
55 | 55 | } |
@@ -8,7 +8,7 @@ |
||
8 | 8 | use Conia\Registry\Exception\ContainerException; |
9 | 9 | |
10 | 10 | /** @psalm-api */ |
11 | -#[Attribute(Attribute::IS_REPEATABLE | Attribute::TARGET_CLASS)] |
|
11 | +#[Attribute(Attribute::IS_REPEATABLE|Attribute::TARGET_CLASS)] |
|
12 | 12 | class Call |
13 | 13 | { |
14 | 14 | public array $args; |
@@ -8,7 +8,7 @@ |
||
8 | 8 | use Conia\Registry\Exception\ContainerException; |
9 | 9 | |
10 | 10 | /** @psalm-api */ |
11 | -#[Attribute(Attribute::IS_REPEATABLE | Attribute::TARGET_FUNCTION | Attribute::TARGET_METHOD)] |
|
11 | +#[Attribute(Attribute::IS_REPEATABLE|Attribute::TARGET_FUNCTION|Attribute::TARGET_METHOD)] |
|
12 | 12 | class Inject |
13 | 13 | { |
14 | 14 | public array $args; |
@@ -88,7 +88,7 @@ |
||
88 | 88 | if ($type instanceof ReflectionNamedType) { |
89 | 89 | try { |
90 | 90 | return $this->registry->get(ltrim($type->getName(), '?')); |
91 | - } catch (NotFoundException | ContainerException $e) { |
|
91 | + } catch (NotFoundException|ContainerException $e) { |
|
92 | 92 | if ($param->isDefaultValueAvailable()) { |
93 | 93 | return $param->getDefaultValue(); |
94 | 94 | } |