Skip to content

[Validator] Added context object method callback to choice validator #19745

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

Conversation

Bouwdie
Copy link

@Bouwdie Bouwdie commented Aug 26, 2016

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

@Bouwdie Bouwdie force-pushed the choice-validator-callable branch from dc39bc9 to c62d94c Compare August 26, 2016 12:12
@Bouwdie
Copy link
Author

Bouwdie commented Aug 26, 2016

Could the build please be restarted? I squashed a commit on the fork branch.

@jakzal
Copy link
Contributor

jakzal commented Aug 26, 2016

@Bouwdie the build is triggered automatically on push. I restarted it nevertheless.

The failure is legitimate (it's introduced by this PR).

@Bouwdie
Copy link
Author

Bouwdie commented Aug 26, 2016

@jakzal thx for restarting them anyway! I should have taken the behaviour of is_callable into account.
https://3v4l.org/j8CBb. The test opened something up that already occurred if a non-static method was given as callback.

…validator to prevent invoking non-static methods
@Bouwdie
Copy link
Author

Bouwdie commented Aug 30, 2016

@jakzal Everything is working correctly and the build succeeds. Is there anything more i can do to speed the review process?

@fghirlanda
Copy link

👍

1 similar comment
@proggeler
Copy link

👍

@fabpot
Copy link
Member

fabpot commented Sep 17, 2016

Thank you @Bouwdie.

@patrick-mcdougle
Copy link
Contributor

Documenting this feature here: symfony/symfony-docs#6973

@Bouwdie
Copy link
Author

Bouwdie commented Sep 18, 2016

@ro0NL Thank you for noticing this pull request 👍

@Bouwdie Bouwdie deleted the choice-validator-callable branch September 18, 2016 15:11
xabbuh added a commit to symfony/symfony-docs that referenced this pull request Sep 21, 2016
This PR was squashed before being merged into the master branch (closes #6973).

Discussion
----------

Callback doesn't have to be static

Adding documentation for symfony/symfony#19745

Commits
-------

79bc283 Callback doesn't have to be static
@fabpot fabpot mentioned this pull request Oct 27, 2016
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.

7 participants