Page MenuHomePhabricator

PHP Strict Standards: Static function 'getSoftwareLink' should not be abstract
Closed, ResolvedPublic

Description

PHP Strict Standards: Static function 'getSoftwareLink' should not be abstract

Line 192 of Database.php


Version: 1.21.x
Severity: trivial

Details

Reference
bz42267

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 12:46 AM
bzimport added a project: Wikimedia-Rdbms.
bzimport set Reference to bz42267.
bzimport added a subscriber: Unknown Object (MLST).
Reedy created this task.Nov 19 2012, 6:59 PM

Why not?

Are static functions incompatible with being abstract?
We want the dbs to have such static function, so having it in the interface seems the right thing to do.

(In reply to comment #1)

Why not?

Are static functions incompatible with being abstract?
We want the dbs to have such static function, so having it in the interface
seems the right thing to do.

http://stackoverflow.com/questions/999066/why-does-php-5-2-disallow-abstract-static-class-methods

From that link «As of PHP 5.2.x, only interfaces can have them.» We do have it in an interface, not as abstract...

already changed with gerrit 63824