Skip to content

Commit 09a04f7

Browse files
keradusfabpot
authored andcommitted
chore: PHP CS Fixer fixes
1 parent a475747 commit 09a04f7

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

Compiler/ResolveBindingsPass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ protected function processValue(mixed $value, bool $isRoot = false): mixed
228228

229229
foreach ($names as $key => $name) {
230230
if (\array_key_exists($name, $arguments) && (0 === $key || \array_key_exists($key - 1, $arguments))) {
231-
if (!array_key_exists($key, $arguments)) {
231+
if (!\array_key_exists($key, $arguments)) {
232232
$arguments[$key] = $arguments[$name];
233233
}
234234
unset($arguments[$name]);

Tests/Compiler/ResolveAutowireInlineAttributesPassTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
use Symfony\Component\DependencyInjection\Compiler\ResolveChildDefinitionsPass;
1919
use Symfony\Component\DependencyInjection\Compiler\ResolveNamedArgumentsPass;
2020
use Symfony\Component\DependencyInjection\ContainerBuilder;
21-
use Symfony\Component\DependencyInjection\Definition;
2221
use Symfony\Component\DependencyInjection\Reference;
2322

2423
require_once __DIR__.'/../Fixtures/includes/autowiring_classes.php';

Tests/Loader/XmlFileLoaderTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1280,7 +1280,7 @@ public function testStaticConstructor()
12801280
public function testStaticConstructorWithFactoryThrows()
12811281
{
12821282
$container = new ContainerBuilder();
1283-
$loader = new XmlFileLoader($container, new FileLocator(self::$fixturesPath . '/xml'));
1283+
$loader = new XmlFileLoader($container, new FileLocator(self::$fixturesPath.'/xml'));
12841284

12851285
$this->expectException(LogicException::class);
12861286
$this->expectExceptionMessage('The "static_constructor" service cannot declare a factory as well as a constructor.');
@@ -1341,7 +1341,7 @@ public function testUnknownConstantAsKey()
13411341
public function testDeprecatedTagged()
13421342
{
13431343
$container = new ContainerBuilder();
1344-
$loader = new XmlFileLoader($container, new FileLocator(self::$fixturesPath . '/xml'));
1344+
$loader = new XmlFileLoader($container, new FileLocator(self::$fixturesPath.'/xml'));
13451345

13461346
$this->expectUserDeprecationMessage(\sprintf('Since symfony/dependency-injection 7.2: Type "tagged" is deprecated for tag <argument>, use "tagged_iterator" instead in "%s/xml%sservices_with_deprecated_tagged.xml".', self::$fixturesPath, \DIRECTORY_SEPARATOR));
13471347

0 commit comments

Comments
 (0)