mirror of
https://github.com/zoe-may/TDoG-Skin.git
synced 2024-11-24 22:02:22 +08:00
42 lines
786 B
PHP
Executable File
42 lines
786 B
PHP
Executable File
<?php
|
|
|
|
namespace Doctrine\DBAL\Driver;
|
|
|
|
use PDOStatement;
|
|
use ReturnTypeWillChange;
|
|
|
|
use function func_get_args;
|
|
|
|
use const PHP_VERSION_ID;
|
|
|
|
if (PHP_VERSION_ID >= 80000) {
|
|
/**
|
|
* @internal
|
|
*/
|
|
trait PDOQueryImplementation
|
|
{
|
|
/**
|
|
* @return PDOStatement
|
|
*/
|
|
#[ReturnTypeWillChange]
|
|
public function query(?string $query = null, ?int $fetchMode = null, mixed ...$fetchModeArgs)
|
|
{
|
|
return $this->doQuery($query, $fetchMode, ...$fetchModeArgs);
|
|
}
|
|
}
|
|
} else {
|
|
/**
|
|
* @internal
|
|
*/
|
|
trait PDOQueryImplementation
|
|
{
|
|
/**
|
|
* @return PDOStatement
|
|
*/
|
|
public function query()
|
|
{
|
|
return $this->doQuery(...func_get_args());
|
|
}
|
|
}
|
|
}
|