updated-packages
This commit is contained in:
41
vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOQueryImplementation.php
vendored
Normal file
41
vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOQueryImplementation.php
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
<?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());
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user