This commit is contained in:
Michał Sieciechowicz 2021-02-28 01:09:41 +01:00
parent 2c2878dda6
commit fbacab4166
1 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ abstract class Model {
[$id]);
}
protected static function Query($sql, $params) {
protected static function Query(string $sql, array|object $params = []) {
self::Check();
return ConnectionManager::Query(
$sql,
@ -32,7 +32,7 @@ abstract class Model {
get_called_class());
}
protected static function QueryAll($sql, $params) {
protected static function QueryAll(string $sql, array|object $params = []) {
self::Check();
return ConnectionManager::QueryAll(
$sql,