Skip to content

Commit

Permalink
[doctrineGH-4049] Trigger deprecation message for Statement::closeCursor
Browse files Browse the repository at this point in the history
  • Loading branch information
beberlei committed Mar 7, 2021
1 parent 9fd3727 commit 2688490
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/Doctrine/DBAL/Statement.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,12 @@ public function execute($params = null)
*/
public function closeCursor()
{
Deprecation::trigger(
'doctrine/dbal',
'https://github.com/doctrine/dbal/pull/4049',
'Statement::closeCursor() is deprecated, use Result::free() instead.'
);

return $this->stmt->closeCursor();
}

Expand Down

0 comments on commit 2688490

Please sign in to comment.