Page MenuHomePhabricator

Replace is_a() with instanceof
Closed, ResolvedPublic

Description

The installer throws an ugly warning saying "Strict standards: is_a(): Deprecated. Please use the instanceof operator".


Version: 1.16.x
Severity: minor

Details

Reference
bz20463

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:50 PM
bzimport set Reference to bz20463.
bzimport added a subscriber: Unknown Object (MLST).

712: if( is_a($u, 'User') ) { // please do not use instanceof, it breaks PHP4
I've heard the installer requires 1.15 nowadays, so can this be fixed now?

Just a note: is_a() is no more deprecated since PHP 5.3.0.