git.gnu.io has moved to IP address 209.51.188.249 -- please double check where you are logging in.

Commit 3394efca authored by mmn's avatar mmn

staticGet is a static function

We always call staticGet statically, so we define it statically. Next
step is to remove a bunch of definitions of 'staticGet' from classes
that can instead fall back to a parent class in Managed_DataObject.

The ampersand is removed as we're returning a class anyway, which does
not need a reference (and when we return false, it means nothing).
parent 0cb5b6fb
......@@ -30,7 +30,7 @@ class Memcached_DataObject extends Safe_DataObject
* @param mixed $v key field value, or leave out for primary key lookup
* @return mixed Memcached_DataObject subtype or false
*/
function &staticGet($cls, $k, $v=null)
static function staticGet($cls, $k, $v=null)
{
if (is_null($v)) {
$v = $k;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment