From 211924b3edd1572c319897fac490075592301706 Mon Sep 17 00:00:00 2001 From: kenjis Date: Mon, 8 Nov 2021 18:50:21 +0900 Subject: [PATCH] docs: update doc comments --- src/AbstractExtendedPdo.php | 8 ++++---- src/PdoInterface.php | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/AbstractExtendedPdo.php b/src/AbstractExtendedPdo.php index 974bc83b..204611a0 100644 --- a/src/AbstractExtendedPdo.php +++ b/src/AbstractExtendedPdo.php @@ -562,7 +562,7 @@ public function perform(string $statement, array $values = []): PDOStatement * * Prepares an SQL statement for execution. * - * @param string $statement The SQL statement to prepare for execution. + * @param string $query The SQL statement to prepare for execution. * * @param array $options Set these attributes on the returned * PDOStatement. @@ -632,7 +632,7 @@ public function prepareWithValues(string $statement, array $values = []): PDOSta * * Queries the database and returns a PDOStatement. * - * @param string $statement The SQL statement to prepare and execute. + * @param string $query The SQL statement to prepare and execute. * * @param int|null $fetchMode * @@ -659,7 +659,7 @@ public function query(string $query, ?int $fetchMode = null, mixed ...$fetch_mod * This differs from `PDO::quote()` in that it will convert an array into * a string of comma-separated quoted values. * - * @param mixed $value The value to quote. + * @param string|int|array|float|null $value The value to quote. * * @param int $type A data type hint for the database driver. * @@ -988,7 +988,7 @@ protected function setQuoteName(string $driver): void * Retrieve a database connection attribute * * @param int $attribute - * @return mixed + * @return bool|int|string|array|null */ public function getAttribute(int $attribute): bool|int|string|array|null { diff --git a/src/PdoInterface.php b/src/PdoInterface.php index a15f358d..f873b87c 100644 --- a/src/PdoInterface.php +++ b/src/PdoInterface.php @@ -65,7 +65,7 @@ public function errorInfo(): array; * * @param string $statement The SQL statement to execute. * - * @return int The number of rows affected. + * @return int|false The number of rows affected. * * @see http://php.net/manual/en/pdo.exec.php * @@ -78,7 +78,7 @@ public function exec(string $statement): int|false; * * @param int $attribute The PDO::ATTR_* constant. * - * @return mixed The value for the attribute. + * @return bool|int|string|array|null The value for the attribute. * */ public function getAttribute(int $attribute): bool|int|string|array|null; @@ -112,7 +112,7 @@ public function lastInsertId(?string $name = null): string|false; * * Prepares an SQL statement for execution. * - * @param string $statement The SQL statement to prepare for execution. + * @param string $query The SQL statement to prepare for execution. * * @param array $options Set these attributes on the returned * PDOStatement. @@ -144,7 +144,7 @@ public function query(string $query, ?int $fetchMode = null, ...$fetch_mode_args * * Quotes a value for use in an SQL statement. * - * @param mixed $value The value to quote. + * @param string|int|array|float|null $value The value to quote. * * @param int $type A data type hint for the database driver. *