diff --git a/system/libs/pot/OTS_DB_PDOQuery.php b/system/libs/pot/OTS_DB_PDOQuery.php index 24ebfa3a..315ecff6 100644 --- a/system/libs/pot/OTS_DB_PDOQuery.php +++ b/system/libs/pot/OTS_DB_PDOQuery.php @@ -1,16 +1,7 @@ = 80000) { - trait OTS_DB_PDOQuery - { - /** - * @return PDOStatement - */ - public function query(?string $query = null, ?int $fetchMode = null, mixed ...$fetchModeArgs) - { - return $this->doQuery($query, $fetchMode, ...$fetchModeArgs); - } - } + require LIBS . 'pot/OTS_DB_PDOQuery_PHP71.php'; } else { trait OTS_DB_PDOQuery { diff --git a/system/libs/pot/OTS_DB_PDOQuery_PHP71.php b/system/libs/pot/OTS_DB_PDOQuery_PHP71.php new file mode 100644 index 00000000..3bb91a46 --- /dev/null +++ b/system/libs/pot/OTS_DB_PDOQuery_PHP71.php @@ -0,0 +1,12 @@ +doQuery($query, $fetchMode, ...$fetchModeArgs); + } +}