Skip to content

Commit 7c58a04

Browse files
committed
Merge branch '4.2'
* 4.2: bump required Twig version fix compatibility with Twig >= 2.6.1 [Form] SA fix fix compatibility with PHPUnit 4.8 remove return type hint for PHP 5 compatibility SCA: minor code tweaks Component CssSelector tests [DebugClassLoader] Readd findFile() method [Console] Fix composer.json suggest/provide Revert "bug #29597 [DI] fix reporting bindings on overriden services as unused (nicolas-grekas)" Fixed exception wording Fix SwiftMailerHandler to support Monolog's latest reset functionality
2 parents e7639ac + 22522df commit 7c58a04

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

DependencyInjection/FrameworkExtension.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -585,9 +585,7 @@ private function registerWorkflowConfiguration(array $config, ContainerBuilder $
585585
$metadataStoreDefinition->replaceArgument(2, $transitionsMetadataDefinition);
586586

587587
// Create places
588-
$places = array_map(function (array $place) {
589-
return $place['name'];
590-
}, $workflow['places']);
588+
$places = array_column($workflow['places'], 'name');
591589

592590
// Create a Definition
593591
$definitionDefinition = new Definition(Workflow\Definition::class);

0 commit comments

Comments
 (0)