Skip to content

Commit

Permalink
Mark more interface method returns.
Browse files Browse the repository at this point in the history
Signed-off-by: Larry Garfield <[email protected]>
  • Loading branch information
Crell committed Dec 16, 2021
1 parent ca74e8c commit 7bede53
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Reader/AbstractFeed.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use DOMDocument;
use DOMElement;
use DOMXPath;
use ReturnTypeWillChange;

use function call_user_func_array;
use function count;
Expand Down Expand Up @@ -115,6 +116,7 @@ public function getOriginalSourceUri()
*
* @return int
*/
#[ReturnTypeWillChange]
public function count()
{
return count($this->entries);
Expand All @@ -125,6 +127,7 @@ public function count()
*
* @return Entry\AbstractEntry
*/
#[ReturnTypeWillChange]
public function current()
{
if (0 === strpos($this->getType(), 'rss')) {
Expand Down Expand Up @@ -207,6 +210,7 @@ public function getType()
*
* @return int
*/
#[ReturnTypeWillChange]
public function key()
{
return $this->entriesKey;
Expand All @@ -215,6 +219,7 @@ public function key()
/**
* Move the feed pointer forward
*/
#[ReturnTypeWillChange]
public function next()
{
++$this->entriesKey;
Expand All @@ -223,6 +228,7 @@ public function next()
/**
* Reset the pointer in the feed object
*/
#[ReturnTypeWillChange]
public function rewind()
{
$this->entriesKey = 0;
Expand All @@ -233,6 +239,7 @@ public function rewind()
*
* @return bool
*/
#[ReturnTypeWillChange]
public function valid()
{
return 0 <= $this->entriesKey && $this->entriesKey < $this->count();
Expand Down

0 comments on commit 7bede53

Please sign in to comment.