-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
replace assertEmpty()
with stricter assertions
#59898
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
👍 As we avoid using |
assertEmpty()
with stricter assertions
105cb0b
to
3c26d6e
Compare
please do not merge yet, I haven't updated all places |
3c26d6e
to
bb030a7
Compare
bb030a7
to
6550cb8
Compare
ready Status: Needs review |
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.
@fabpot shall we teach fabbot to report such things in future?
I suppose this could be part of PHP-CS-Fixer? |
Thank you @xabbuh. |
In the code we are strict about not using
empty()
. In my opinion it makes sense to be equally strict with our assertions. But I'd like to gather some feedback first before updating all places.