From 4407fe9bfccd6c70516b618cfc7cc1b0f16bfde8 Mon Sep 17 00:00:00 2001 From: Sergio Brighenti Date: Fri, 30 Jun 2023 22:55:42 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/Container.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Container.php b/src/Container.php index 93daf71..f1a769f 100644 --- a/src/Container.php +++ b/src/Container.php @@ -172,8 +172,10 @@ protected function getArguments(array $parameters, $additional = []): array return match (true) { $type !== null && $this->has($type) => $this->get($type), // via definitions - array_key_exists($param->getName(), - $additional) => $additional[$param->getName()], // defined by the user + array_key_exists( + $param->getName(), + $additional + ) => $additional[$param->getName()], // defined by the user !empty($positionalArgs) => array_shift($positionalArgs), $param->isOptional() => $param->getDefaultValue(), // use default when available $type !== null && class_exists($type) && !enum_exists($type) => $this->resolve($type), // via reflection