Skip to content

Commit

Permalink
#30 fix return type
Browse files Browse the repository at this point in the history
  • Loading branch information
1stthomas committed Mar 10, 2022
1 parent 8aec8ac commit de835b4
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/Lists/HashList.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
*/
class HashList extends AbstractItemList
{

/**
*
* @param Hashable $item
Expand All @@ -34,17 +33,15 @@ public function add($item)

return $this;
}

/**
* {@inheritdoc}
*
* @return SimpleAssocIterator
*/
public function getIterator()
public function getIterator(): \Traversable
{
return new SimpleAssocIterator($this->getAll());
}

/**
* {@inheritdoc}
*/
Expand All @@ -63,7 +60,6 @@ public function getNext($index)
}
}
}

/**
* {@inheritdoc}
*/
Expand All @@ -82,7 +78,6 @@ public function getPrevious($index)
}
}
}

/**
* Merge an instance of an implementation of the <code>ItemListable</code>
* interface with the present one.
Expand All @@ -94,5 +89,4 @@ public function merge(ItemListable $iL)
{
$this->items = array_merge($iL->getAll(), $this->getAll());
}

}

0 comments on commit de835b4

Please sign in to comment.