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 22, 2021
1 parent 3a17360 commit 2dba981
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::triggerIfCalledFromOutside(
'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 2dba981

Please sign in to comment.