8000 [Workflow] Fixed initial places when no places are configured · symfony/symfony@8f3a2e5 · GitHub
[go: up one dir, main page]

Skip to content
10000

Commit 8f3a2e5

Browse files
committed
[Workflow] Fixed initial places when no places are configured
I introduced a BC break in #30468 and this PR fix it. With the full stack framework, when one does not configure the initial_place(s) the DIC set `[]` for the initial values. So it removes the initials values guessed in `Definition::addPlace()`
1 parent 9ab706b commit 8f3a2e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/Workflow/Definition.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ public function getMetadataStore(): MetadataStoreInterface
9292
return $this->metadataStore;
9393
}
9494

95-
private function setInitialPlaces($places = null)
95+
private function setInitialPlaces(array $places = null)
9696
{
97-
if (null === $places) {
97+
if (!$places) {
9898
return;
9999
}
100100

0 commit comments

Comments
 (0)
0