Skip to content

Commit 06f5c86

Browse files
committed
minor symfony#19166 Undefined variable $name (IvanMenshykov)
This PR was merged into the 3.2-dev branch. Discussion ---------- Undefined variable $name | Q | A | ------------- | --- | Branch? | "master" for new features / 2.7, 2.8, 3.0 or 3.1 for fixes | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | License | MIT Commits ------- 8304bcc Undefined variable $name
2 parents f40c703 + 8304bcc commit 06f5c86

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
@@ -65,7 +65,7 @@ public function setInitialPlace($place)
6565
public function addPlace($place)
6666
{
6767
if (!preg_match('{^[\w\d_-]+$}', $place)) {
68-
throw new InvalidArgumentException(sprintf('The place "%s" contains invalid characters.', $name));
68+
throw new InvalidArgumentException(sprintf('The place "%s" contains invalid characters.', $place));
6969
}
7070

7171
if (!count($this->places)) {

0 commit comments

Comments
 (0)