Skip to content

Added missing dot in property path assembly. #1885

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 2 commits into from
Nov 20, 2012
Merged

Added missing dot in property path assembly. #1885

merged 2 commits into from
Nov 20, 2012

Conversation

bjo3rnf
Copy link
Contributor

@bjo3rnf bjo3rnf commented Nov 3, 2012

No description provided.

@@ -217,7 +217,7 @@ With this, the validator ``isValid()`` method gets an object as its first argume
{
if ($protocol->getFoo() != $protocol->getBar()) {

$propertyPath = $this->context->getPropertyPath() . 'foo';
$propertyPath = $this->context->getPropertyPath() . '.foo';
Copy link
Member

Choose a reason for hiding this comment

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

It's not your foult, but can you please remove the space around the dot operator?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, it's gone.

~~I have a noob question though: I tried to stick closely to the contribution docs but couldn't find the described to link to change the base branch back to @2.0. I somehow managed to change the branch after some fiddling around but that left a PR for the master branch which I closed directly. I guess that's not how it's meant to be done so maybe the contribution docs are outdated or a little fuzzy? Chances are of course that I am simply blind… ;-)

Thanks in advance.~~

Edit: Got it. Turned out to be a classical RTFM. Never mind.

Cheers

Am 03.11.2012 um 23:02 schrieb Wouter J notifications@github.com:

In cookbook/validation/custom_constraint.rst:

@@ -217,7 +217,7 @@ With this, the validator isValid() method gets an object as its first argume
{
if ($protocol->getFoo() != $protocol->getBar()) {

  •            $propertyPath = $this->context->getPropertyPath() . 'foo';
    
  •            $propertyPath = $this->context->getPropertyPath() . '.foo';
    
    It's not your foult, but can you please remove the space around the dot operator?


Reply to this email directly or view it on GitHub.

weaverryan added a commit that referenced this pull request Nov 20, 2012
…ty_path

Added missing dot in property path assembly.
@weaverryan weaverryan merged commit 78346a4 into symfony:2.0 Nov 20, 2012
@weaverryan
Copy link
Member

Hi Björn!

Great fix and perfect PR!

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants