Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

make method supportsClass() in custom voter compatible with the interface's documentation#3707

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
weaverryan merged 1 commit intosymfony:2.3fromxabbuh:issue-3702
Mar 24, 2014

Conversation

xabbuh
Copy link
Member

QA
Doc fix?yes
New docs?no
Applies toall
Fixed tickets#3702

@bicpi
Copy link
Contributor

👍

{
return$obj instanceof Post;
return'Acme\DemoBundle\Entity\Post' === $class;
Copy link
Contributor

Choose a reason for hiding this comment

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

Possibly change that to the following to be more like instanceof?

$supportedClass ='Acme\DemoBundle\Entity\Post';return$supportedClass ===$class ||is_subclass_of($class,$supportedClass);

@weaverryan
Copy link
Member

I should have known the#3702 issue would already have a fix ;). Thanks Christian!

weaverryan added a commit that referenced this pull requestMar 24, 2014
… the interface's documentation (xabbuh)This PR was merged into the 2.3 branch.Discussion----------make method supportsClass() in custom voter compatible with the interface's documentation| Q             | A| ------------- | ---| Doc fix?      | yes| New docs?     | no| Applies to    | all| Fixed tickets |#3702Commits-------36384db make method supportsClass() in custom voter compatible with the interface's documentation
@weaverryanweaverryan merged commit36384db intosymfony:2.3Mar 24, 2014
@xabbuhxabbuh deleted the issue-3702 branchMarch 24, 2014 20:00
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@xabbuh@bicpi@weaverryan@bystones

[8]ページ先頭

©2009-2025 Movatter.jp