mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-14 09:44:55 +02:00
Fix compatibility with PHP 7.0 and lower
This commit is contained in:
@@ -1,16 +1,7 @@
|
||||
<?php
|
||||
|
||||
if (PHP_VERSION_ID >= 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
|
||||
{
|
||||
|
Reference in New Issue
Block a user