Skip to content

Commit 52473d3

Browse files
committed
[doctrineGH-4049] Trigger deprecation message for Statement::closeCursor
1 parent 86ed37f commit 52473d3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/Doctrine/DBAL/Statement.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,12 @@ public function execute($params = null)
190190
*/
191191
public function closeCursor()
192192
{
193+
Deprecation::trigger(
194+
'doctrine/dbal',
195+
'https://github.com/doctrine/dbal/pull/4049',
196+
'Statement::closeCursor() is deprecated, use Result::free() instead.'
197+
);
198+
193199
return $this->stmt->closeCursor();
194200
}
195201

0 commit comments

Comments
 (0)