Skip to content

Commit

Permalink
Merge pull request #196 from kenjis/fix-phpdoc
Browse files Browse the repository at this point in the history
Update PHPDoc
  • Loading branch information
kenjis authored Nov 8, 2021
2 parents 2c39cd2 + 211924b commit 1a1bf0a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/AbstractExtendedPdo.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
*
Expand All @@ -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.
*
Expand Down Expand Up @@ -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
{
Expand Down
8 changes: 4 additions & 4 deletions src/PdoInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand All @@ -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;
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
*
Expand Down

0 comments on commit 1a1bf0a

Please sign in to comment.