[wp-trac] [WordPress Trac] #26153: test_json_encode_decode fails in PHP 5.4
WordPress Trac
noreply at wordpress.org
Fri Nov 22 05:21:51 UTC 2013
#26153: test_json_encode_decode fails in PHP 5.4
-----------------------------+------------------------------
Reporter: georgestephanis | Owner:
Type: defect (bug) | Status: new
Priority: low | Milestone: Awaiting Review
Component: Unit Tests | Version: trunk
Severity: minor | Resolution:
Keywords: has-patch |
-----------------------------+------------------------------
Comment (by SergeyBiryukov):
So, I can only reproduce if I call `Services_JSON::isError()` in a test
manually:
{{{
Non-static method Services_JSON::isError() should not be called
statically, assuming $this from incompatible context
}}}
For the instances inside the class itself, I don't see the warning.
Wouldn't it be the same as `this::isError()`, which works for non-static
methods too?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/26153#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list