diff --git a/.travis.yml b/.travis.yml index 71328b7..36a0b4f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,6 +5,8 @@ php: - 5.4 - 5.5 - 5.6 + - 8.0 + - 8.1 - hhvm env: diff --git a/src/Phpforce/SoapClient/Result/RecordIterator.php b/src/Phpforce/SoapClient/Result/RecordIterator.php index 9423a9c..2b9b236 100644 --- a/src/Phpforce/SoapClient/Result/RecordIterator.php +++ b/src/Phpforce/SoapClient/Result/RecordIterator.php @@ -58,6 +58,7 @@ public function __construct(Client $client, QueryResult $result) * {@inheritdoc} * @return object */ + #[\ReturnTypeWillChange] public function current() { return $this->current; @@ -99,6 +100,7 @@ protected function getObjectAt($pointer) * * @return int|null */ + #[\ReturnTypeWillChange] public function key() { return $this->pointer; @@ -107,6 +109,7 @@ public function key() /** * {@inheritdoc} */ + #[\ReturnTypeWillChange] public function next() { $this->pointer++; @@ -115,6 +118,7 @@ public function next() /** * {@inheritdoc} */ + #[\ReturnTypeWillChange] public function rewind() { $this->pointer = 0; @@ -125,6 +129,7 @@ public function rewind() * * @return boolean */ + #[\ReturnTypeWillChange] public function valid() { return null != $this->getObjectAt($this->pointer); @@ -170,6 +175,7 @@ protected function queryMore() * * @return int */ + #[\ReturnTypeWillChange] public function count() { return $this->queryResult->getSize(); @@ -178,6 +184,7 @@ public function count() /** * @param int $position */ + #[\ReturnTypeWillChange] public function seek($position) { return $this->getObjectAt($position);