From 45e0a0c6f34acd70723f5d128505c3943946e751 Mon Sep 17 00:00:00 2001 From: Enzo Innocenzi Date: Sat, 29 Jun 2024 22:22:50 +0200 Subject: [PATCH] style: apply fixes from style-ci --- tests/Container/ContextualAttributeBindingTest.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/Container/ContextualAttributeBindingTest.php b/tests/Container/ContextualAttributeBindingTest.php index c7e33d248abd..a3e9cfdf4a04 100644 --- a/tests/Container/ContextualAttributeBindingTest.php +++ b/tests/Container/ContextualAttributeBindingTest.php @@ -38,7 +38,7 @@ public function testScalarDependencyCanBeResolvedFromAttributeBinding() $container = new Container; $container->singleton('config', fn () => new Repository([ 'app' => [ - 'timezone' => 'Europe/Paris' + 'timezone' => 'Europe/Paris', ] ])); @@ -57,7 +57,7 @@ public function testScalarDependencyCanBeResolvedFromAttributeResolveMethod() $container = new Container; $container->singleton('config', fn () => new Repository([ 'app' => [ - 'env' => 'production' + 'env' => 'production', ] ])); @@ -125,7 +125,6 @@ public function __construct( } } - #[Attribute(Attribute::TARGET_PARAMETER)] final class ContainerTestConfigValueWithResolve implements ContextualAttribute { @@ -133,7 +132,7 @@ public function __construct( public readonly string $key ) { } - + public function resolve(self $attribute, Container $container): string { return $container->make('config')->get($attribute->key);