Skip to content

Commit 6a626d5

Browse files
Merge branch '2.8' into 3.2
* 2.8: [DI] Fix PhpDumper generated doc block #20411 fix Yaml parsing for very long quoted strings [Doctrine Bridge] fix priority for doctrine event listeners Use PHP functions as array_map callbacks when possible [Validator] revert wrong Phpdoc change Use proper line endings
2 parents ded1607 + c14cdbb commit 6a626d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/DependencyInjection/FrameworkExtensionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ public function testTranslator()
387387
$this->assertEquals('translator.default', (string) $container->getAlias('translator'), '->registerTranslatorConfiguration() redefines translator service from identity to real translator');
388388
$options = $container->getDefinition('translator.default')->getArgument(3);
389389

390-
$files = array_map(function ($resource) { return realpath($resource); }, $options['resource_files']['en']);
390+
$files = array_map('realpath', $options['resource_files']['en']);
391391
$ref = new \ReflectionClass('Symfony\Component\Validator\Validation');
392392
$this->assertContains(
393393
strtr(dirname($ref->getFileName()).'/Resources/translations/validators.en.xlf', '/', DIRECTORY_SEPARATOR),

0 commit comments

Comments
 (0)