Coverage increased (+0.006%) to 88.777% when pulling 07a84ab6a81c68942c78829aa11307ed6dea5903 on thomaslorentsen:working into ea17effa6b532a11c3e6593419653812417f8480 on rackspace:working.
Coverage increased (+0.006%) to 88.777% when pulling 07a84ab6a81c68942c78829aa11307ed6dea5903 on thomaslorentsen:working into ea17effa6b532a11c3e6593419653812417f8480 on rackspace:working.
PHP7 no longer considers an empty string as valid JSON.
When passing an empty string to
json_decode
an exception is raised instead of returningnull
.This is documented on the PHP7 Backward incompatible changes page.
I have updated the method to check for an empty response string and return
null
instead.