Skip to content
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

[Voter] Use the subject's FQCN in the support method #295

Merged
merged 1 commit into from Oct 23, 2018

Conversation

lyrixx
Copy link
Member

@lyrixx lyrixx commented Oct 16, 2018

People could replace only the BlogPost class. So the support method will always return false.

With a leading \, the class name will resolve "normally"

People could replace only the `BlogPost` class. So the support method will always return `false`.

With a leading `\`, the class name will resolve "normally"
@weaverryan
Copy link
Member

Good catch - thank you Grégoire!

@weaverryan weaverryan merged commit 651ee9a into master Oct 23, 2018
weaverryan added a commit that referenced this pull request Oct 23, 2018
This PR was merged into the 1.0-dev branch.

Discussion
----------

[Voter] Use the subject's FQCN in the support method

People could replace only the `BlogPost` class. So the support method will always return `false`.

With a leading `\`, the class name will resolve "normally"

Commits
-------

651ee9a [Voter] Use the subject's FQCN in the support method
@lyrixx lyrixx deleted the lyrixx-patch-1 branch October 23, 2018 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants