-
-
Notifications
You must be signed in to change notification settings - Fork 565
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
Fix short ternary stan errors #645
Conversation
Tests are all green, but can we be sure each and every change is technically correct? The semantics are different. |
They sure are! If you look at the changes, you'll see that I didn't just blindly replace every |
Meanwhile, I'm not sure what's going on with the the linting. PHP_CodeSniffer evidently released a new version a few days ago (last green CI in this repo was at 3.5.4, it's now at 3.5.5), and now the linting check lit up the code base with dozens of |
Locked the code sniffer version until they issue a fix for squizlabs/PHP_CodeSniffer#2937 |
Co-Authored-By: Šimon Podlipský <simon@podlipsky.net>
I went ahead and pushed this a2780a0 to avoid pollution in PRs |
Ah, very helpful, thanks. I'll update my PRs in the morning. 👍 |
@simPod Is there anything I still need to do on this PR? |
That would be lovely, thank you. |
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.
Looks good to me, thanks!
Also, sorry for the lack of activity, I've been super busy recently. Looking forward to work on graphql-php as soon as I finish my current project at work.
No problem, been rather crushed, myself. Thank you both for reviewing! |
Hi guys, I'm back. I've resumed work on my lazy load PR, but I thought I'd warm up on something "easy". I went through the code base and replaced all the short ternary operators with appropriate alternatives. Let me know if I messed anything up.