Skip to content

Commit

Permalink
Merge pull request #4571 from bcremer/improve-phpstorm-deprecation-in…
Browse files Browse the repository at this point in the history
…spection-support

Add explicit @deprecated in ForwardCompatibility\Result
  • Loading branch information
beberlei authored Apr 1, 2021
2 parents 081dc64 + 9aaa436 commit a7b57b7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/Doctrine/DBAL/ForwardCompatibility/Result.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ public function getIterator()

/**
* {@inheritDoc}
*
* @deprecated Use Result::free() instead.
*/
public function closeCursor()
{
Expand All @@ -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)
{
Expand All @@ -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)
{
Expand All @@ -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)
{
Expand All @@ -77,6 +85,8 @@ public function fetchAll($fetchMode = null, $fetchArgument = null, $ctorArgs = n

/**
* {@inheritDoc}
*
* @deprecated Use fetchOne() instead.
*/
public function fetchColumn($columnIndex = 0)
{
Expand Down

0 comments on commit a7b57b7

Please sign in to comment.