mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-12 23:14:18 +01:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user