From 9aaa436a020ac7f90dd51f635ffff7a733ef1a75 Mon Sep 17 00:00:00 2001 From: Benjamin Cremer Date: Thu, 1 Apr 2021 09:18:28 +0200 Subject: [PATCH] Add explicit @deprecated in ForwardCompatibility\Result PHPStorm will not by able to detect deprecated methods with {@inheritDoc}. Copy deprecation annotaions from \Doctrine\DBAL\Driver\ResultStatement. --- lib/Doctrine/DBAL/ForwardCompatibility/Result.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/Doctrine/DBAL/ForwardCompatibility/Result.php b/lib/Doctrine/DBAL/ForwardCompatibility/Result.php index c03cd3ac570..e46fffa3f86 100644 --- a/lib/Doctrine/DBAL/ForwardCompatibility/Result.php +++ b/lib/Doctrine/DBAL/ForwardCompatibility/Result.php @@ -37,6 +37,8 @@ public function getIterator() /** * {@inheritDoc} + * + * @deprecated Use Result::free() instead. */ public function closeCursor() { @@ -53,6 +55,8 @@ public function columnCount() /** * {@inheritDoc} + * + * @deprecated Use one of the fetch- or iterate-related methods. */ public function setFetchMode($fetchMode, $arg2 = null, $arg3 = null) { @@ -61,6 +65,8 @@ public function setFetchMode($fetchMode, $arg2 = null, $arg3 = null) /** * {@inheritDoc} + * + * @deprecated Use fetchNumeric(), fetchAssociative() or fetchOne() instead. */ public function fetch($fetchMode = null, $cursorOrientation = PDO::FETCH_ORI_NEXT, $cursorOffset = 0) { @@ -69,6 +75,8 @@ public function fetch($fetchMode = null, $cursorOrientation = PDO::FETCH_ORI_NEX /** * {@inheritDoc} + * + * @deprecated Use fetchAllNumeric(), fetchAllAssociative() or fetchFirstColumn() instead. */ public function fetchAll($fetchMode = null, $fetchArgument = null, $ctorArgs = null) { @@ -77,6 +85,8 @@ public function fetchAll($fetchMode = null, $fetchArgument = null, $ctorArgs = n /** * {@inheritDoc} + * + * @deprecated Use fetchOne() instead. */ public function fetchColumn($columnIndex = 0) {