Fix error when call non-static funtion 'getInstance' as static on ModelMysql.

This commit is contained in:
kj 2020-04-09 17:39:45 -04:00
parent a036d0e1be
commit a2503adba2

View File

@ -160,7 +160,7 @@ class ModelMySQL {
* @return ModelMySQL * @return ModelMySQL
* Retorna un objeto de la clase actual. * Retorna un objeto de la clase actual.
*/ */
public function getInstance($elem = []) { public static function getInstance($elem = []) {
$class = get_called_class(); $class = get_called_class();
$instace = new $class; $instace = new $class;