8000 [Workflow] Fixed default parameters · symfony/symfony@b01efde · GitHub
[go: up one dir, main page]

Skip to content

Commit b01efde

Browse files
committed
[Workflow] Fixed default parameters
1 parent bbeca51 commit b01efde

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ private function registerWorkflowConfiguration(array $config, ContainerBuilder $
467467
$type = $workflow['type'];
468468

469469
// Process Metadata (workflow + places (transition is done in the "create transition" block))
470-
$metadataStoreDefinition = new Definition(Workflow\Metadata\InMemoryMetadataStore::class, array(null, null, null));
470+
$metadataStoreDefinition = new Definition(Workflow\Metadata\InMemoryMetadataStore::class, array([], [], null));
471471
if ($workflow['metadata']) {
472472
$metadataStoreDefinition->replaceArgument(0, $workflow['metadata']);
473473
}

src/Symfony/Component/Workflow/Metadata/InMemoryMetadataStore.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ final class InMemoryMetadataStore implements MetadataStoreInterface
2424
private $placesMetadata;
2525
private $transitionsMetadata;
2626

27-
public function __construct($workflowMetadata = array(), array $placesMetadata = array(), \SplObjectStorage $transitionsMetadata = null)
27+
public function __construct(array $workflowMetadata = array(), array $placesMetadata = array(), \SplObjectStorage $transitionsMetadata = null)
2828
{
2929
$this->workflowMetadata = $workflowMetadata;
3030
$this->placesMetadata = $placesMetadata;

0 commit comments

Comments
 (0)
0