]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
We can now do late static binding (PHP >= 5.3)
authorMikael Nordfeldth <mmn@hethane.se>
Tue, 20 Aug 2013 07:43:51 +0000 (09:43 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Tue, 20 Aug 2013 07:43:51 +0000 (09:43 +0200)
classes/Managed_DataObject.php

index b4eab98f8a3aa63cc7751cba8f82ee76d44ce8c8..d173deff2495545fd106d9c01794fb804032f5d8 100644 (file)
@@ -87,9 +87,7 @@ abstract class Managed_DataObject extends Memcached_DataObject
      */
     function table()
     {
-        // Hack for PHP 5.2 not supporting late static binding
-        //$table = static::schemaDef();
-        $table = call_user_func(array(get_class($this), 'schemaDef'));
+        $table = static::schemaDef();
         return array_map(array($this, 'columnBitmap'), $table['fields']);
     }