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

Skip to content

Fixed @return self with $this in FormConfigBuilderInterface #21137

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
Jan 2, 2017

Conversation

wouterj
Copy link
Member

@wouterj wouterj commented Jan 2, 2017

Q A
Branch? 2.7
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets -
License MIT
Doc PR -

Fixes a tiny bug introduced by #21054 . FormConfigBuilder methods actually return $this and not self. This is important, as the FormBuilder (extending FormConfigBuilder) methods can also be called (e.g. $builder->setDataMapper(...)->add() is perfectly possible).

@stof
Copy link
Member

stof commented Jan 2, 2017

👍

1 similar comment
@xabbuh
Copy link
Member

xabbuh commented Jan 2, 2017

👍

@nicolas-grekas
Copy link
Member

Thank you @wouterj.

@nicolas-grekas nicolas-grekas merged commit 505e84d into symfony:2.7 Jan 2, 2017
nicolas-grekas added a commit that referenced this pull request Jan 2, 2017
…terface (wouterj)

This PR was merged into the 2.7 branch.

Discussion
----------

Fixed `@return self` with `$this` in FormConfigBuilderInterface

| Q             | A
| ------------- | ---
| Branch?       | 2.7
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

Fixes a tiny bug introduced by #21054 . `FormConfigBuilder` methods actually return `$this` and not `self`. This is important, as the `FormBuilder` (extending `FormConfigBuilder`) methods can also be called (e.g. `$builder->setDataMapper(...)->add()` is perfectly possible).

Commits
-------

505e84d Fixed `@return self` with `$this`
@wouterj wouterj deleted the fix-phpdoc-return branch January 2, 2017 18:18
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.

5 participants