-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
Conversation
*/ | ||
public function submitForm($button, $values, $method) | ||
public function submitForm(string $button, array $fieldValues, string $method = 'POST'): Crawler |
There was a problem hiding this comment.
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
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like that! Done!
Should we add to |
Might be nice. |
Thank you @javiereguiluz. |
…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
I wanted to suggest these changes to #27807 but I failed to do that before it was merged.