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
1 changed files with 1 additions and 1 deletions

View File

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