I can’t figure out why this error in php 5.4.
Strict Standards: Non-static method dbInstance::getInstance() should not be called statically
The class is:
class dbInstance
{
private static $db;
public static function getInstance()
{
if (! self::$db) self::$db = new db();
return self::$db;
}
}
I call it like:
$registry->db = $db = dbInstance::getInstance()
Thanks
I can’t reproduce the error. Are you absolutely sure you’ve edited the right file? Or maybe you are seeing a cached version of the output?
prints on my computer