Skip to content

Commit

Permalink
Remove unnecessary argument $rawSql of `AbstractCommand::internalEx…
Browse files Browse the repository at this point in the history
…ecute()` method
  • Loading branch information
Tigrov committed Nov 17, 2023
1 parent 6845a40 commit cfeb83e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Command/AbstractCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ abstract protected function internalGetQueryResult(int $queryMode): mixed;
/**
* Executes a prepared statement.
*
* @param string|null $rawSql The rawSql if it has been created.
* @param string|null $rawSql Deprecated. Use `null` value. Will be removed in version 2.0.0.
*
* @throws Exception
* @throws Throwable
Expand Down Expand Up @@ -581,7 +581,7 @@ protected function queryInternal(int $queryMode): mixed
$isReadMode = $this->isReadMode($queryMode);
$this->prepare($isReadMode);

$this->internalExecute($this->getRawSql());
$this->internalExecute(null);

/** @psalm-var mixed $result */
$result = $this->internalGetQueryResult($queryMode);
Expand Down
2 changes: 1 addition & 1 deletion src/Driver/Pdo/AbstractPdoCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ protected function getQueryMode(int $queryMode): string
*
* It's a wrapper around {@see PDOStatement::execute()} to support transactions and retry handlers.
*
* @param string|null $rawSql The rawSql if it has been created.
* @param string|null $rawSql Deprecated. Use `null` value. Will be removed in version 2.0.0.
*
* @throws Exception
* @throws Throwable
Expand Down

0 comments on commit cfeb83e

Please sign in to comment.