Skip to content
This repository has been archived by the owner on May 11, 2021. It is now read-only.

Commit

Permalink
Revert "wip - test 2.x return type"
Browse files Browse the repository at this point in the history
This reverts commit 22f1d77.
  • Loading branch information
mvorisek committed Dec 1, 2020
1 parent 34572a9 commit e2c0b69
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/Expression.php
Original file line number Diff line number Diff line change
Expand Up @@ -555,10 +555,6 @@ public function execute(object $connection = null): object

$result = $statement->execute();
if (Connection::isComposerDbal2x()) {
if (!$result instanceof \Doctrine\DBAL\Driver\Result) {
throw new Exception('Unexpected statement type');
}

return $statement;
}

Expand Down

0 comments on commit e2c0b69

Please sign in to comment.