Skip to content

Commit

Permalink
Rephrase deprecation message
Browse files Browse the repository at this point in the history
  • Loading branch information
PowerKiKi committed Apr 6, 2021
1 parent c8f1a38 commit 100cde2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Query/QueryBuilder.php
Expand Up @@ -339,7 +339,7 @@ public function execute()
Deprecation::trigger(
'doctrine/dbal',
'https://github.com/doctrine/dbal/pull/4578',
'QueryBuilder::execute is deprecated, instead use QueryBuilder::executeQuery'
'QueryBuilder::execute() is deprecated, use QueryBuilder::executeQuery() for SQL queries instead.'
);

return $this->connection->executeQuery($this->getSQL(), $this->params, $this->paramTypes);
Expand All @@ -348,7 +348,7 @@ public function execute()
Deprecation::trigger(
'doctrine/dbal',
'https://github.com/doctrine/dbal/pull/4578',
'QueryBuilder::execute is deprecated, instead use QueryBuilder::executeStatement'
'QueryBuilder::execute() is deprecated, use QueryBuilder::executeStatement() for SQL statements instead.'
);

return $this->connection->executeStatement($this->getSQL(), $this->params, $this->paramTypes);
Expand Down

0 comments on commit 100cde2

Please sign in to comment.