fix typo error.

This commit is contained in:
kj 2020-05-01 19:17:47 -04:00
parent 9d31dc1c24
commit 28ada2810d
1 changed files with 3 additions and 3 deletions

View File

@ -162,13 +162,13 @@ class ModelMySQL {
*/
public static function getInstance($elem = []) {
$class = get_called_class();
$instace = new $class;
$instance = new $class;
foreach ($elem as $key => $value) {
$instace->$key = $value;
$instance->$key = $value;
}
return $instace;
return $instance;
}
/*