Skip to content

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