Skip to content

correct PHP code #8013

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

Closed
wants to merge 2 commits into from
Closed

correct PHP code #8013

wants to merge 2 commits into from

Conversation

MedUnes
Copy link

@MedUnes MedUnes commented Jun 9, 2017

No description provided.

/**
* @dataProvider getValidTestData
*/

Copy link
Contributor

Choose a reason for hiding this comment

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

This change looks wrong, as the data provider for the method testForm is the method getValidTestData.

The PHP doc

/**
 * @dataProvider getValidTestData
 */

doesn't mean

this method is a data provider

but instead means

the data provider for this method is this other method

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

Indeed, this part needs to be kept as is. But the other change is great. 👍

Copy link
Author

Choose a reason for hiding this comment

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

thanks @apfelbox , it is clear that you are right
thanks @xabbuh, I'm happy to correct a Symfony's documentation for the second time 👍

@xabbuh xabbuh mentioned this pull request Jun 13, 2017
@xabbuh xabbuh added this to the 2.7 milestone Jun 13, 2017
@xabbuh xabbuh modified the milestones: 2.8, 2.7 Jun 18, 2017
@xabbuh
Copy link
Member

xabbuh commented Jun 18, 2017

Thank you @MedUnes.

xabbuh added a commit that referenced this pull request Jun 18, 2017
xabbuh added a commit that referenced this pull request Jun 18, 2017
This PR was submitted for the 3.3 branch but it was merged into the 2.8 branch instead (closes #8013).

Discussion
----------

correct PHP code

Commits
-------

9d1eab7 [#8013] revert wrong data provider change
80e664a correct PHP code
@xabbuh xabbuh closed this Jun 18, 2017
xabbuh added a commit that referenced this pull request Jun 18, 2017
* 2.8:
  [#8013] revert wrong data provider change
  correct PHP code
  Added a missing <script> tag in an example
  minor tweak
  Fix comment to be consistent with the example
  Reworded the article about slashes in routing placeholders
  Minor reword of code contribution standards
xabbuh added a commit that referenced this pull request Jun 18, 2017
* 3.2:
  [#8048] some minor tweaks
  [#8013] revert wrong data provider change
  correct PHP code
  Added a missing <script> tag in an example
  clarify workflow events
  minor tweak
  Fix comment to be consistent with the example
  Reworded the article about slashes in routing placeholders
  Minor reword of code contribution standards
xabbuh added a commit that referenced this pull request Jun 18, 2017
* 3.4:
  [#8048] some minor tweaks
  [#8013] revert wrong data provider change
  correct PHP code
  Added a missing <script> tag in an example
  Fix variable name in CSFR token example code
  [AUTOWIRE] Fix invalid yaml code
  clarify workflow events
  minor tweak
  Fix comment to be consistent with the example
  fix invalid code lines and remove extra space
  Reworded the article about slashes in routing placeholders
  Minor reword of code contribution standards
weaverryan added a commit that referenced this pull request Jun 28, 2017
* origin/2.8:
  [#8013] revert wrong data provider change
  correct PHP code
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.

3 participants