Skip to content

Commit 3014bb2

Browse files
zombergfabpot
authored andcommitted
Minor fixes
1 parent b737df5 commit 3014bb2

File tree

5 files changed

+2
-5
lines changed

5 files changed

+2
-5
lines changed

Compiler/ResolveReferencesToAliasesPass.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
namespace Symfony\Component\DependencyInjection\Compiler;
1313

1414
use Symfony\Component\DependencyInjection\Alias;
15-
use Symfony\Component\DependencyInjection\Definition;
1615
use Symfony\Component\DependencyInjection\Exception\ServiceCircularReferenceException;
1716
use Symfony\Component\DependencyInjection\Reference;
1817
use Symfony\Component\DependencyInjection\ContainerBuilder;

Tests/Compiler/ReplaceAliasByActualDefinitionPassTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function testProcess()
5151
$this->assertSame('b_alias', $aDefinition->getFactoryService(false));
5252
$this->assertTrue($container->has('container'));
5353

54-
$resolvedFactory = $aDefinition->getFactory(false);
54+
$resolvedFactory = $aDefinition->getFactory();
5555
$this->assertSame('b_alias', (string) $resolvedFactory[0]);
5656
}
5757

Tests/ContainerBuilderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public function testGet()
100100
try {
101101
@$builder->get('baz');
102102
$this->fail('->get() throws a ServiceCircularReferenceException if the service has a circular reference to itself');
103-
} catch (\Symfony\Component\DependencyInjection\Exception\ServiceCircularReferenceException $e) {
103+
} catch (ServiceCircularReferenceException $e) {
104104
$this->assertEquals('Circular reference detected for service "baz", path: "baz".', $e->getMessage(), '->get() throws a LogicException if the service has a circular reference to itself');
105105
}
106106

Tests/Fixtures/containers/legacy-container9.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use Symfony\Component\DependencyInjection\ContainerBuilder;
66
use Symfony\Component\DependencyInjection\Reference;
7-
use Symfony\Component\ExpressionLanguage\Expression;
87

98
$container = new ContainerBuilder();
109
$container->

Tests/Loader/XmlFileLoaderTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
use Symfony\Component\DependencyInjection\ContainerInterface;
1515
use Symfony\Component\DependencyInjection\ContainerBuilder;
16-
use Symfony\Component\DependencyInjection\Exception\InvalidArgumentException;
1716
use Symfony\Component\DependencyInjection\Reference;
1817
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
1918
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;

0 commit comments

Comments
 (0)