N°4517 - PHP 8.1: Fix return types to match parent Countable class

* DBObjectSet::Seek() now returns void instead of the current object, this was mandatory in to order to match parent class. Returned object is never used in iTop core and extensions so we consider it ok and will document it in the migration notes.
This commit is contained in:
Molkobain
2022-05-16 08:15:29 +02:00
committed by acognet
parent 130b4b176f
commit 212565b01e
3 changed files with 7 additions and 9 deletions

View File

@@ -38,7 +38,7 @@ interface iDBObjectSetIterator extends Countable
*
* @return int
*/
public function Count();
public function Count(): int;
/**
* Reset the cursor to the first item in the collection. Equivalent to Seek(0)
@@ -52,7 +52,7 @@ interface iDBObjectSetIterator extends Countable
*
* @param int $iRow
*/
public function Seek($iPosition);
public function Seek($iPosition): void;
/**
* Fetch the object at the current position in the collection and move the cursor to the next position.