@@ -48,9 +48,8 @@ final class ArrayDefinition implements DefinitionInterface
4848 private function __construct (
4949 private string $ class ,
5050 private array $ constructorArguments ,
51- private array $ methodsAndProperties
52- ) {
53- }
51+ private array $ methodsAndProperties ,
52+ ) {}
5453
5554 /**
5655 * @param ContainerInterface|null $referenceContainer Container to resolve references with.
@@ -72,7 +71,7 @@ public static function fromConfig(array $config): self
7271 return new self (
7372 $ config [self ::CLASS_NAME ],
7473 $ config [self ::CONSTRUCTOR ] ?? [],
75- self ::getMethodsAndPropertiesFromConfig ($ config )
74+ self ::getMethodsAndPropertiesFromConfig ($ config ),
7675 );
7776 }
7877
@@ -142,7 +141,7 @@ public function resolve(ContainerInterface $container): object
142141 $ resolvedConstructorArguments = $ this ->resolveFunctionArguments (
143142 $ container ,
144143 DefinitionExtractor::fromClassName ($ class ),
145- $ this ->getConstructorArguments ()
144+ $ this ->getConstructorArguments (),
146145 );
147146
148147 /** @psalm-suppress MixedMethodCall */
@@ -182,7 +181,7 @@ public function resolve(ContainerInterface $container): object
182181 private function resolveFunctionArguments (
183182 ContainerInterface $ container ,
184183 array $ dependencies ,
185- array $ arguments
184+ array $ arguments,
186185 ): array {
187186 $ isIntegerIndexed = $ this ->isIntegerIndexed ($ arguments );
188187 $ dependencyIndex = 0 ;
@@ -209,7 +208,7 @@ private function resolveFunctionArguments(
209208 $ arguments [$ variadicKey ] = DefinitionResolver::resolve (
210209 $ container ,
211210 $ this ->referenceContainer ,
212- $ arguments [$ variadicKey ]
211+ $ arguments [$ variadicKey ],
213212 );
214213 }
215214
@@ -220,8 +219,8 @@ private function resolveFunctionArguments(
220219 throw new InvalidArgumentException (
221220 sprintf (
222221 'Named argument for a variadic parameter should be an array, "%s" given. ' ,
223- gettype ($ arguments [$ variadicKey ])
224- )
222+ gettype ($ arguments [$ variadicKey ]),
223+ ),
225224 );
226225 }
227226 } else {
@@ -262,7 +261,7 @@ private function isIntegerIndexed(array $arguments): bool
262261 }
263262 if ($ hasIntegerIndex && $ hasStringIndex ) {
264263 throw new InvalidConfigException (
265- 'Arguments indexed both by name and by position are not allowed in the same array. '
264+ 'Arguments indexed both by name and by position are not allowed in the same array. ' ,
266265 );
267266 }
268267
0 commit comments