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

Skip to content

Added types and tweaked PHPdoc of clickLink() and submitForm() methods #27956

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
Jul 18, 2018

Conversation

javiereguiluz
Copy link
Member

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

I wanted to suggest these changes to #27807 but I failed to do that before it was merged.

*/
public function submitForm($button, $values, $method)
public function submitForm(string $button, array $fieldValues, string $method = 'POST'): Crawler
Copy link
Member

Choose a reason for hiding this comment

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

What about having array() as the default value for $fieldValues?

Copy link
Member Author

Choose a reason for hiding this comment

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

I like that! Done!

@javiereguiluz
Copy link
Member Author

javiereguiluz commented Jul 15, 2018

Should we add to submitForm() a fourth optional argument called array $serverParameters = array() like in submit()?

@fabpot
Copy link
Member

fabpot commented Jul 15, 2018

Might be nice.

@fabpot
Copy link
Member

fabpot commented Jul 18, 2018

Thank you @javiereguiluz.

@fabpot fabpot merged commit be9d578 into symfony:master Jul 18, 2018
fabpot added a commit that referenced this pull request Jul 18, 2018
…itForm() methods (javiereguiluz)

This PR was squashed before being merged into the 4.2-dev branch (closes #27956).

Discussion
----------

Added types and tweaked PHPdoc of clickLink() and submitForm() methods

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | no <!-- don't forget to update src/**/CHANGELOG.md files -->
| BC breaks?    | no     <!-- see https://symfony.com/bc -->
| Deprecations? | no <!-- don't forget to update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->
| Fixed tickets | -   <!-- #-prefixed issue number(s), if any -->
| License       | MIT
| Doc PR        | -

I wanted to suggest these changes to #27807 but I failed to do that before it was merged.

Commits
-------

be9d578 Added types and tweaked PHPdoc of clickLink() and submitForm() methods
@nicolas-grekas nicolas-grekas modified the milestones: next, 4.2 Nov 1, 2018
This was referenced Nov 3, 2018
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