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

Remove redundant check #11006

Merged
merged 1 commit into from
Oct 13, 2023
Merged

Remove redundant check #11006

merged 1 commit into from
Oct 13, 2023

Conversation

dbu
Copy link
Member

@dbu dbu commented Oct 13, 2023

i was trying to understand the AttributeReader and stumbled over this bit.

intellij complains that we are not supposed to ever return RepeatableAttributeCollection according to the PHPDoc. reading the code, i think the additional isRepeatable check makes no sense, as we already checked above and errored if the property is repeatable.

targeting the 2.x branch, as discussed in #11004

@dbu dbu mentioned this pull request Oct 13, 2023
@derrabus derrabus added this to the 2.17.0 milestone Oct 13, 2023
@derrabus derrabus merged commit 1cec0b8 into doctrine:2.17.x Oct 13, 2023
58 checks passed
@dbu dbu deleted the remove-redundant-check branch October 14, 2023 06:22
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.

3 participants