8000 bug #30884 [Workflow] Fixed initial places when no places are configu… · symfony/symfony@fe7363f · GitHub
[go: up one dir, main page]

Skip to content

Commit fe7363f

Browse files
committed
bug #30884 [Workflow] Fixed initial places when no places are configured (lyrixx)
This PR was merged into the 4.3-dev branch. Discussion ---------- [Workflow] Fixed initial places when no places are configured | Q | A | ------------- | --- | Branch? | master | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | EUFOSSA 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()` Commits ------- 76fd9c3 [Workflow] Fixed initial places when no places are configured
2 parents a7c4767 + 76fd9c3 commit fe7363f

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