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

Skip to content

Commit 76fd9c3

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 9793522 commit 76fd9c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Workflow/Definition.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public function getMetadataStore(): MetadataStoreInterface
9494

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

0 commit comments

Comments
 (0)
0