php-src/ext/pdo/pdo_dbh.stub.php
Nikita Popov 6385006102 Merge branch 'PHP-8.0'
* PHP-8.0:
  Mark PDO::setAttribute() $value as mixed
2021-08-20 16:53:25 +02:00

51 lines
1.5 KiB
PHP

<?php
/** @generate-class-entries */
/** @not-serializable */
class PDO
{
public function __construct(string $dsn, ?string $username = null, ?string $password = null, ?array $options = null) {}
/** @tentative-return-type */
public function beginTransaction(): bool {}
/** @tentative-return-type */
public function commit(): bool {}
/** @tentative-return-type */
public function errorCode(): ?string {}
/** @tentative-return-type */
public function errorInfo(): array {}
/** @tentative-return-type */
public function exec(string $statement): int|false {}
/** @tentative-return-type */
public function getAttribute(int $attribute): mixed {}
/** @tentative-return-type */
public static function getAvailableDrivers(): array {}
/** @tentative-return-type */
public function inTransaction(): bool {}
/** @tentative-return-type */
public function lastInsertId(?string $name = null): string|false {}
/** @tentative-return-type */
public function prepare(string $query, array $options = []): PDOStatement|false {}
/** @tentative-return-type */
public function query(string $query, ?int $fetchMode = null, mixed ...$fetchModeArgs): PDOStatement|false {}
/** @tentative-return-type */
public function quote(string $string, int $type = PDO::PARAM_STR): string|false {}
/** @tentative-return-type */
public function rollBack(): bool {}
/** @tentative-return-type */
public function setAttribute(int $attribute, mixed $value): bool {}
}