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

[CS] is_null($var) -> null === $var #6948

Merged
merged 1 commit into from
Jan 2, 2018
Merged

Conversation

Slamdunk
Copy link
Contributor

@Slamdunk Slamdunk commented Jan 2, 2018

The fix was applied with PHP-CS-Fixer rule is_null.

@Ocramius Ocramius self-assigned this Jan 2, 2018
@Ocramius Ocramius added this to the 3.0 milestone Jan 2, 2018
@Ocramius
Copy link
Member

Ocramius commented Jan 2, 2018

🚢 thanks @Slamdunk!

@Ocramius Ocramius merged commit 9800ca7 into doctrine:develop Jan 2, 2018
@Slamdunk Slamdunk deleted the cs_is_null branch January 2, 2018 08:45
@Majkl578
Copy link
Contributor

Majkl578 commented Jan 2, 2018

FYI: This shouldn't be using Yoda as per vote in doctrine/coding-standard#9.

@Slamdunk
Copy link
Contributor Author

Slamdunk commented Jan 2, 2018

If I got it right, when you'll finish the work on https://github.com/doctrine/coding-standard/ you'll apply it to all the doctrine codebase, and so the code will be fixed, right?

@Majkl578
Copy link
Contributor

Majkl578 commented Jan 2, 2018

Yes, just better to not introduce code that needs modifications a week later. :) Doesn't matter now when merged.

@Slamdunk
Copy link
Contributor Author

Slamdunk commented Jan 2, 2018

Yes, just better to not introduce code that needs modifications a week later.

I agree, I asked because in opposite case I would have opened another PR.

@greg0ire greg0ire removed this from the 3.0.0 milestone Jun 27, 2021
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.

4 participants