Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Undefined variable $name #19166

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 24, 2016
Merged

Undefined variable $name #19166

merged 1 commit into from
Jun 24, 2016

Conversation

janczer
Copy link
Contributor

@janczer janczer commented Jun 24, 2016

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

@@ -65,7 +65,7 @@ public function setInitialPlace($place)
public function addPlace($place)
{
if (!preg_match('{^[\w\d_-]+$}', $place)) {
throw new InvalidArgumentException(sprintf('The place "%s" contains invalid characters.', $name));
throw new InvalidArgumentException(sprintf('The place "%s" contains invalid characters.', $place));
Copy link
Member

@GromNaN GromNaN Jun 24, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This highlights missing tests on error cases.

@fabpot
Copy link
Member

fabpot commented Jun 24, 2016

Thank you @IvanMenshykov.

@fabpot fabpot merged commit 8304bcc into symfony:master Jun 24, 2016
fabpot added a commit that referenced this pull request Jun 24, 2016
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants