Skip to content
Snippets Groups Projects
Commit ed5e136a authored by mondrake's avatar mondrake
Browse files

Update PdoTrait.php

parent a7ae0230
No related branches found
No related tags found
4 merge requests!11355Create the database driver for MySQLi #3259709,!10263Closes #3488467,!10207Replace \PDO::FETCH_* constants to indicate fetch mode with an enumeration,!5247Enable dynamic queries to produce SQL with positional placeholders
......@@ -108,10 +108,10 @@ protected function clientExecute(?array $arguments = [], array $options = []): b
* @param int|null $cursorOffset
* Not implemented in all database drivers, don't use.
*
* @return array<string|int|float|bool>|object|false
* @return array<string|int|float|bool>|object|string|int|float|bool
* A result, formatted according to $mode, or FALSE on failure.
*/
protected function clientFetch(?FetchAs $mode = NULL, ?int $cursorOrientation = NULL, ?int $cursorOffset = NULL) {
protected function clientFetch(?FetchAs $mode = NULL, ?int $cursorOrientation = NULL, ?int $cursorOffset = NULL): array|object|string|int|float|bool {
return match(func_num_args()) {
0 => $this->getClientStatement()->fetch(),
1 => $this->getClientStatement()->fetch($this->fetchAsToPdo($mode)),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment