Skip to content

Commit

Permalink
style: apply fixes from style-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
innocenzi committed Jun 29, 2024
1 parent 16f5f73 commit 45e0a0c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/Container/ContextualAttributeBindingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function testScalarDependencyCanBeResolvedFromAttributeBinding()
$container = new Container;
$container->singleton('config', fn () => new Repository([
'app' => [
'timezone' => 'Europe/Paris'
'timezone' => 'Europe/Paris',
]
]));

Expand All @@ -57,7 +57,7 @@ public function testScalarDependencyCanBeResolvedFromAttributeResolveMethod()
$container = new Container;
$container->singleton('config', fn () => new Repository([
'app' => [
'env' => 'production'
'env' => 'production',
]
]));

Expand Down Expand Up @@ -125,15 +125,14 @@ public function __construct(
}
}


#[Attribute(Attribute::TARGET_PARAMETER)]
final class ContainerTestConfigValueWithResolve implements ContextualAttribute
{
public function __construct(
public readonly string $key
) {
}

public function resolve(self $attribute, Container $container): string
{
return $container->make('config')->get($attribute->key);
Expand Down

0 comments on commit 45e0a0c

Please sign in to comment.