-
-
Notifications
You must be signed in to change notification settings - Fork 319
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
Avoid calling get_class on null in UnknownElement. #972
Conversation
Codecov Report
@@ Coverage Diff @@
## master #972 +/- ##
========================================
Coverage 44.9% 44.9%
- Complexity 9924 9925 +1
========================================
Files 499 499
Lines 24053 24053
========================================
Hits 10800 10800
Misses 13253 13253
Continue to review full report at Codecov.
|
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.
Would you mind to format your code according to PSR-2 please.
@siad007 I'd be happy to, but you'll have to be more clear - as far as I can see it's already compliant with the requirements for ternaries, was there something else you were referring to? |
Explicitly passing NULL to get_class triggers E_WARNING as of PHP 7.2[1]. [1] https://secure.php.net/get_class
bcd4be3
to
8202982
Compare
Thanks, fixed and squashed. If you're inclined to merge this, can we also merge it back as a fix on to the 2.x series? |
Fair enough; I haven't looked at whatever changes are upcoming in 3.x, but
given the major version change I was assuming backwards incompatibility.
The fix is trivial so hopefully @mrook is amenable to applying it to the
current release branch as well as the alpha version.
…On Sun, 21 Oct 2018, 10:14 Siad Ardroumli, ***@***.***> wrote:
@elyobo <https://github.com/elyobo>
If you're inclined to merge this, can we also merge it back as a fix on to
the 2.x series?
it does not make sence for the 2.x branch as well exept @mrook
<https://github.com/mrook> is willing to make it happen.
For php > 7 the actual 3.x is the way to go in my opinion.
thx for contributing.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#972 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAY4_s4pg3uaiHun4mjYZl1D036QZv3Iks5um65ngaJpZM4XmXX6>
.
|
I think I missed this. I'll take a look at rolling a 2.16.x patch fix with this applied. We don't have any definitive plans for the v3 release roadmap. |
👍 Thanks |
Explicitly passing NULL to get_class triggers E_WARNING as of PHP 7.2[1].
[1] https://secure.php.net/get_class