Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 278280a

Browse files
committed
minor #34105 Remove unused local variables (fancyweb)
This PR was merged into the 3.4 branch. Discussion ---------- Remove unused local variables | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - This PR removes useless assignations. There are also somes fixes in tests. Commits ------- c07cee8 Remove unused local variables in tests
2 parents 5d097d2 + c07cee8 commit 278280a

File tree

77 files changed

+118
-133
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+118
-133
lines changed

src/Symfony/Bridge/Doctrine/Tests/Form/Type/EntityTypeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ public function testSetDataToUninitializedEntityWithNonRequiredQueryBuilder()
187187
public function testConfigureQueryBuilderWithNonQueryBuilderAndNonClosure()
188188
{
189189
$this->expectException('Symfony\Component\OptionsResolver\Exception\InvalidOptionsException');
190-
$field = $this->factory->createNamed('name', static::TESTED_TYPE, null, [
190+
$this->factory->createNamed('name', static::TESTED_TYPE, null, [
191191
'em' => 'default',
192192
'class' => self::SINGLE_IDENT_CLASS,
193193
'query_builder' => new \stdClass(),

src/Symfony/Bridge/Twig/Node/SearchAndRenderBlockNode.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ public function compile(Compiler $compiler)
2828

2929
preg_match('/_([^_]+)$/', $this->getAttribute('name'), $matches);
3030

31-
$label = null;
3231
$arguments = iterator_to_array($this->getNode('arguments'));
3332
$blockNameSuffix = $matches[1];
3433

src/Symfony/Bridge/Twig/Tests/AppVariableTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,10 +180,10 @@ public function testGetFlashes()
180180
$flashMessages = $this->setFlashMessages();
181181
$this->assertEquals($flashMessages, $this->appVariable->getFlashes([]));
182182

183-
$flashMessages = $this->setFlashMessages();
183+
$this->setFlashMessages();
184184
$this->assertEquals([], $this->appVariable->getFlashes('this-does-not-exist'));
185185

186-
$flashMessages = $this->setFlashMessages();
186+
$this->setFlashMessages();
187187
$this->assertEquals(
188188
['this-does-not-exist' => []],
189189
$this->appVariable->getFlashes(['this-does-not-exist'])

src/Symfony/Bridge/Twig/Tests/Command/LintCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function testLintFileNotReadable()
5252
$filename = $this->createFile('');
5353
unlink($filename);
5454

55-
$ret = $tester->execute(['filename' => [$filename]], ['decorated' => false]);
55+
$tester->execute(['filename' => [$filename]], ['decorated' => false]);
5656
}
5757

5858
public function testLintFileCompileTimeException()

src/Symfony/Bridge/Twig/Tests/Extension/StopwatchExtensionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function testTiming($template, $events)
3434
$twig->addExtension(new StopwatchExtension($this->getStopwatch($events)));
3535

3636
try {
37-
$nodes = $twig->render('template');
37+
$twig->render('template');
3838
} catch (RuntimeError $e) {
3939
throw $e->getPrevious();
4040
}

src/Symfony/Bridge/Twig/Tests/Extension/TranslationExtensionTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,21 +49,21 @@ public function testTransUnknownKeyword()
4949
{
5050
$this->expectException('Twig\Error\SyntaxError');
5151
$this->expectExceptionMessage('Unexpected token. Twig was looking for the "with", "from", or "into" keyword in "index" at line 3.');
52-
$output = $this->getTemplate("{% trans \n\nfoo %}{% endtrans %}")->render();
52+
$this->getTemplate("{% trans \n\nfoo %}{% endtrans %}")->render();
5353
}
5454

5555
public function testTransComplexBody()
5656
{
5757
$this->expectException('Twig\Error\SyntaxError');
5858
$this->expectExceptionMessage('A message inside a trans tag must be a simple text in "index" at line 2.');
59-
$output = $this->getTemplate("{% trans %}\n{{ 1 + 2 }}{% endtrans %}")->render();
59+
$this->getTemplate("{% trans %}\n{{ 1 + 2 }}{% endtrans %}")->render();
6060
}
6161

6262
public function testTransChoiceComplexBody()
6363
{
6464
$this->expectException('Twig\Error\SyntaxError');
6565
$this->expectExceptionMessage('A message inside a transchoice tag must be a simple text in "index" at line 2.');
66-
$output = $this->getTemplate("{% transchoice count %}\n{{ 1 + 2 }}{% endtranschoice %}")->render();
66+
$this->getTemplate("{% transchoice count %}\n{{ 1 + 2 }}{% endtranschoice %}")->render();
6767
}
6868

6969
public function getTransTests()

src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/TextDescriptor.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,6 @@ private function renderEventListenerTable(EventDispatcherInterface $eventDispatc
425425
$tableHeaders = ['Order', 'Callable', 'Priority'];
426426
$tableRows = [];
427427

428-
$order = 1;
429428
foreach ($eventListeners as $order => $listener) {
430429
$tableRows[] = [sprintf('#%d', $order + 1), $this->formatCallable($listener), $eventDispatcher->getListenerPriority($event, $listener)];
431430
}

src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1043,8 +1043,6 @@ private function registerAssetsConfiguration(array $config, ContainerBuilder $co
10431043
$container->getDefinition('assets.url_package')->setPrivate(true);
10441044
$container->getDefinition('assets.static_version_strategy')->setPrivate(true);
10451045

1046-
$defaultVersion = null;
1047-
10481046
if ($config['version_strategy']) {
10491047
$defaultVersion = new Reference($config['version_strategy']);
10501048
} else {

src/Symfony/Bundle/FrameworkBundle/Tests/Controller/ControllerTraitTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,7 @@ public function testFileWhichDoesNotExist()
277277
$this->expectException('Symfony\Component\HttpFoundation\File\Exception\FileNotFoundException');
278278
$controller = $this->createController();
279279

280-
/* @var BinaryFileResponse $response */
281-
$response = $controller->file('some-file.txt', 'test.php');
280+
$controller->file('some-file.txt', 'test.php');
282281
}
283282

284283
public function testIsGranted()

src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/AddConstraintValidatorsPassTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function testAbstractConstraintValidator()
5151
$this->expectException('InvalidArgumentException');
5252
$this->expectExceptionMessage('The service "my_abstract_constraint_validator" tagged "validator.constraint_validator" must not be abstract.');
5353
$container = new ContainerBuilder();
54-
$validatorFactory = $container->register('validator.validator_factory')
54+
$container->register('validator.validator_factory')
5555
->addArgument([]);
5656

5757
$container->register('my_abstract_constraint_validator')

src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/FrameworkExtensionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ public function testWorkflows()
251251
*/
252252
public function testDeprecatedWorkflowMissingType()
253253
{
254-
$container = $this->createContainerFromFile('workflows_without_type');
254+
$this->createContainerFromFile('workflows_without_type');
255255
}
256256

257257
public function testWorkflowCannotHaveBothTypeAndService()

src/Symfony/Bundle/FrameworkBundle/Tests/Functional/Bundle/TestBundle/DependencyInjection/TestExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class TestExtension extends Extension implements PrependExtensionInterface
2626
public function load(array $configs, ContainerBuilder $container)
2727
{
2828
$configuration = $this->getConfiguration($configs, $container);
29-
$config = $this->processConfiguration($configuration, $configs);
29+
$this->processConfiguration($configuration, $configs);
3030

3131
$container->setAlias('test.annotation_reader', new Alias('annotation_reader', true));
3232
}

src/Symfony/Bundle/FrameworkBundle/Tests/Functional/SessionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function testFlash($config, $insulate)
5959
}
6060

6161
// set flash
62-
$crawler = $client->request('GET', '/session_setflash/Hello%20world.');
62+
$client->request('GET', '/session_setflash/Hello%20world.');
6363

6464
// check flash displays on redirect
6565
$this->assertStringContainsString('Hello world.', $client->followRedirect()->text());

src/Symfony/Bundle/FrameworkBundle/Tests/Translation/TranslatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public function testGetDefaultLocaleOmittingLocaleWithPsrContainer()
162162
$this->expectException('InvalidArgumentException');
163163
$this->expectExceptionMessage('Missing third $defaultLocale argument.');
164164
$container = $this->getMockBuilder(ContainerInterface::class)->getMock();
165-
$translator = new Translator($container, new MessageFormatter());
165+
new Translator($container, new MessageFormatter());
166166
}
167167

168168
/**

src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/Security/Factory/AbstractFactoryTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function testDefaultFailureHandler($serviceId, $defaultHandlerInjection)
6161
$options['failure_handler'] = $serviceId;
6262
}
6363

64-
list($container, $authProviderId, $listenerId, $entryPointId) = $this->callFactory('foo', $options, 'user_provider', 'entry_point');
64+
list($container) = $this->callFactory('foo', $options, 'user_provider', 'entry_point');
6565

6666
$definition = $container->getDefinition('abstract_listener.foo');
6767
$arguments = $definition->getArguments();
@@ -99,7 +99,7 @@ public function testDefaultSuccessHandler($serviceId, $defaultHandlerInjection)
9999
$options['success_handler'] = $serviceId;
100100
}
101101

102-
list($container, $authProviderId, $listenerId, $entryPointId) = $this->callFactory('foo', $options, 'user_provider', 'entry_point');
102+
list($container) = $this->callFactory('foo', $options, 'user_provider', 'entry_point');
103103

104104
$definition = $container->getDefinition('abstract_listener.foo');
105105
$arguments = $definition->getArguments();

src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/Security/Factory/GuardAuthenticationFactoryTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ public function testCreateWithEntryPoint()
159159
'authenticators' => ['authenticator123', 'authenticatorABC'],
160160
'entry_point' => 'authenticatorABC',
161161
];
162-
list($container, $entryPointId) = $this->executeCreate($config, null);
162+
list(, $entryPointId) = $this->executeCreate($config, null);
163163
$this->assertEquals('authenticatorABC', $entryPointId);
164164
}
165165

@@ -172,7 +172,7 @@ private function executeCreate(array $config, $defaultEntryPointId)
172172
$userProviderId = 'my_user_provider';
173173

174174
$factory = new GuardAuthenticationFactory();
175-
list($providerId, $listenerId, $entryPointId) = $factory->create($container, $id, $config, $userProviderId, $defaultEntryPointId);
175+
list(, , $entryPointId) = $factory->create($container, $id, $config, $userProviderId, $defaultEntryPointId);
176176

177177
return [$container, $entryPointId];
178178
}

src/Symfony/Component/BrowserKit/Tests/CookieTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,6 @@ public function testConstructException()
198198
{
199199
$this->expectException('UnexpectedValueException');
200200
$this->expectExceptionMessage('The cookie expiration time "string" is not valid.');
201-
$cookie = new Cookie('foo', 'bar', 'string');
201+
new Cookie('foo', 'bar', 'string');
202202
}
203203
}

src/Symfony/Component/Cache/Tests/Adapter/MaxIdLengthAdapterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function testTooLongNamespace()
7070
{
7171
$this->expectException('Symfony\Component\Cache\Exception\InvalidArgumentException');
7272
$this->expectExceptionMessage('Namespace must be 26 chars max, 40 given ("----------------------------------------")');
73-
$cache = $this->getMockBuilder(MaxIdLengthAdapter::class)
73+
$this->getMockBuilder(MaxIdLengthAdapter::class)
7474
->setConstructorArgs([str_repeat('-', 40)])
7575
->getMock();
7676
}

src/Symfony/Component/Config/Tests/Loader/DelegatingLoaderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class DelegatingLoaderTest extends TestCase
1919
{
2020
public function testConstructor()
2121
{
22-
$loader = new DelegatingLoader($resolver = new LoaderResolver());
22+
new DelegatingLoader($resolver = new LoaderResolver());
2323
$this->assertTrue(true, '__construct() takes a loader resolver as its first argument');
2424
}
2525

src/Symfony/Component/Config/Tests/Resource/ClassExistenceResourceTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function testExistsKo()
6767

6868
$loadedClass = 123;
6969

70-
$res = new ClassExistenceResource('MissingFooClass', false);
70+
new ClassExistenceResource('MissingFooClass', false);
7171

7272
$this->assertSame(123, $loadedClass);
7373
} finally {

src/Symfony/Component/Config/Tests/Resource/DirectoryResourceTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function testResourceDoesNotExist()
6767
{
6868
$this->expectException('InvalidArgumentException');
6969
$this->expectExceptionMessageRegExp('/The directory ".*" does not exist./');
70-
$resource = new DirectoryResource('/____foo/foobar'.mt_rand(1, 999999));
70+
new DirectoryResource('/____foo/foobar'.mt_rand(1, 999999));
7171
}
7272

7373
public function testIsFresh()
@@ -165,7 +165,7 @@ public function testSerializeUnserialize()
165165
{
166166
$resource = new DirectoryResource($this->directory, '/\.(foo|xml)$/');
167167

168-
$unserialized = unserialize(serialize($resource));
168+
unserialize(serialize($resource));
169169

170170
$this->assertSame(realpath($this->directory), $resource->getResource());
171171
$this->assertSame('/\.(foo|xml)$/', $resource->getPattern());

src/Symfony/Component/Config/Tests/Resource/FileResourceTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function testResourceDoesNotExist()
5757
{
5858
$this->expectException('InvalidArgumentException');
5959
$this->expectExceptionMessageRegExp('/The file ".*" does not exist./');
60-
$resource = new FileResource('/____foo/foobar'.mt_rand(1, 999999));
60+
new FileResource('/____foo/foobar'.mt_rand(1, 999999));
6161
}
6262

6363
public function testIsFresh()
@@ -76,7 +76,7 @@ public function testIsFreshForDeletedResources()
7676

7777
public function testSerializeUnserialize()
7878
{
79-
$unserialized = unserialize(serialize($this->resource));
79+
unserialize(serialize($this->resource));
8080

8181
$this->assertSame(realpath($this->file), $this->resource->getResource());
8282
}

src/Symfony/Component/Console/Tests/ApplicationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ public function testFindAlternativeExceptionMessageMultiple()
521521

522522
// Subnamespace + plural
523523
try {
524-
$a = $application->find('foo3:');
524+
$application->find('foo3:');
525525
$this->fail('->find() should throw an Symfony\Component\Console\Exception\CommandNotFoundException if a command is ambiguous because of a subnamespace, with alternatives');
526526
} catch (\Exception $e) {
527527
$this->assertInstanceOf('Symfony\Component\Console\Exception\CommandNotFoundException', $e);

src/Symfony/Component/Console/Tests/Helper/ProgressIndicatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public function testCannotSetInvalidIndicatorCharacters()
104104
{
105105
$this->expectException('InvalidArgumentException');
106106
$this->expectExceptionMessage('Must have at least 2 indicator value characters.');
107-
$bar = new ProgressIndicator($this->getOutputStream(), null, 100, ['1']);
107+
new ProgressIndicator($this->getOutputStream(), null, 100, ['1']);
108108
}
109109

110110
public function testCannotStartAlreadyStartedIndicator()

src/Symfony/Component/Debug/DebugClassLoader.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ private function darwinRealpath($real)
404404
}
405405

406406
if (isset($dirFiles[$file])) {
407-
return $real .= $dirFiles[$file];
407+
return $real.$dirFiles[$file];
408408
}
409409

410410
$kFile = strtolower($file);
@@ -423,7 +423,7 @@ private function darwinRealpath($real)
423423
self::$darwinCache[$kDir][1] = $dirFiles;
424424
}
425425

426-
return $real .= $dirFiles[$kFile];
426+
return $real.$dirFiles[$kFile];
427427
}
428428

429429
/**

src/Symfony/Component/Debug/Tests/Exception/FlattenExceptionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ function () {},
256256

257257
// assertEquals() does not like NAN values.
258258
$this->assertEquals($array[$i][0], 'float');
259-
$this->assertNan($array[$i++][1]);
259+
$this->assertNan($array[$i][1]);
260260
}
261261

262262
public function testRecursionInArguments()

src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ public function dump(array $options = [])
219219
foreach ($ids as $id) {
220220
$c .= ' '.$this->doExport($id)." => true,\n";
221221
}
222-
$files['removed-ids.php'] = $c .= "];\n";
222+
$files['removed-ids.php'] = $c."];\n";
223223
}
224224

225225
foreach ($this->generateServiceFiles() as $file => $c) {

src/Symfony/Component/DependencyInjection/Tests/Compiler/AnalyzeServiceReferencesPassTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,28 +25,28 @@ public function testProcess()
2525
{
2626
$container = new ContainerBuilder();
2727

28-
$a = $container
28+
$container
2929
->register('a')
3030
->addArgument($ref1 = new Reference('b'))
3131
;
3232

33-
$b = $container
33+
$container
3434
->register('b')
3535
->addMethodCall('setA', [$ref2 = new Reference('a')])
3636
;
3737

38-
$c = $container
38+
$container
3939
->register('c')
4040
->addArgument($ref3 = new Reference('a'))
4141
->addArgument($ref4 = new Reference('b'))
4242
;
4343

44-
$d = $container
44+
$container
4545
->register('d')
4646
->setProperty('foo', $ref5 = new Reference('b'))
4747
;
4848

49-
$e = $container
49+
$container
5050
->register('e')
5151
->setConfigurator([$ref6 = new Reference('b'), 'methodName'])
5252
;

src/Symfony/Component/DependencyInjection/Tests/Compiler/IntegrationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function testProcessRemovesAndInlinesRecursively()
4343
->addArgument(new Reference('c'))
4444
;
4545

46-
$b = $container
46+
$container
4747
->register('b', '\stdClass')
4848
->addArgument(new Reference('c'))
4949
->setPublic(false)

src/Symfony/Component/DependencyInjection/Tests/Compiler/ResolveChildDefinitionsPassTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ public function testBindings()
390390
->setBindings(['a' => '1', 'b' => '2'])
391391
;
392392

393-
$child = $container->setDefinition('child', new ChildDefinition('parent'))
393+
$container->setDefinition('child', new ChildDefinition('parent'))
394394
->setBindings(['b' => 'B', 'c' => 'C'])
395395
;
396396

src/Symfony/Component/DependencyInjection/Tests/Compiler/ResolveClassPassTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ public function testAmbiguousChildDefinition()
8787
$this->expectException('Symfony\Component\DependencyInjection\Exception\InvalidArgumentException');
8888
$this->expectExceptionMessage('Service definition "App\Foo\Child" has a parent but no class, and its name looks like a FQCN. Either the class is missing or you want to inherit it from the parent service. To resolve this ambiguity, please rename this service to a non-FQCN (e.g. using dots), or create the missing class.');
8989
$container = new ContainerBuilder();
90-
$parent = $container->register('App\Foo', null);
91-
$child = $container->setDefinition('App\Foo\Child', new ChildDefinition('App\Foo'));
90+
$container->register('App\Foo', null);
91+
$container->setDefinition('App\Foo\Child', new ChildDefinition('App\Foo'));
9292

9393
(new ResolveClassPass())->process($container);
9494
}

src/Symfony/Component/DependencyInjection/Tests/ContainerBuilderTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1265,7 +1265,7 @@ public function testNoClassFromGlobalNamespaceClassId()
12651265
$this->expectExceptionMessage('The definition for "DateTime" has no class attribute, and appears to reference a class or interface in the global namespace.');
12661266
$container = new ContainerBuilder();
12671267

1268-
$definition = $container->register(\DateTime::class);
1268+
$container->register(\DateTime::class);
12691269
$container->compile();
12701270
}
12711271

@@ -1295,7 +1295,7 @@ public function testNoClassFromNonClassId()
12951295
$this->expectExceptionMessage('The definition for "123_abc" has no class.');
12961296
$container = new ContainerBuilder();
12971297

1298-
$definition = $container->register('123_abc');
1298+
$container->register('123_abc');
12991299
$container->compile();
13001300
}
13011301

@@ -1305,7 +1305,7 @@ public function testNoClassFromNsSeparatorId()
13051305
$this->expectExceptionMessage('The definition for "\foo" has no class.');
13061306
$container = new ContainerBuilder();
13071307

1308-
$definition = $container->register('\\foo');
1308+
$container->register('\\foo');
13091309
$container->compile();
13101310
}
13111311

0 commit comments

Comments
 (0)