Page MenuHomePhabricator

Strict Standards: Non-static method WatchedItem::fromUserTitle() should not be called statically
Closed, ResolvedPublic

Description

Author: barkerjr

Description:
PHP: 5.2.3

Enabling "E_ALL | E_STRICT" in php.ini, I get this warning on the top of most pages in the wiki. The warnings only show up for logged in users.

<b>Strict Standards</b>: Non-static method WatchedItem::fromUserTitle() should not be called statically, assuming $this from incompatible context in <b>/usr/local/apache2/htdocs/mw/includes/User.php</b> on line <b>1769</b><br />

Also occurs on Linux with Mediawiki 1.9.3 but on line 1685.

There are a number of other warnings with E_STRICT, on other pages (i.e. Special Pages), so the entire wiki should probably be checked.


Version: 1.10.x
Severity: minor
OS: FreeBSD
Platform: PC

Details

Reference
bz10909

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 9:52 PM
bzimport set Reference to bz10909.
bzimport added a subscriber: Unknown Object (MLST).

robchur wrote:

This would have been fixed in r21799.