Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix deprecation notices #43

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix: PHP 8.1 deprecation notices
  • Loading branch information
devbranch-vadym committed May 22, 2023
commit 8c5da8fe59f1738e7791220ff30352456c105b97
7 changes: 7 additions & 0 deletions src/Phpforce/SoapClient/Result/RecordIterator.php
Original file line number Diff line number Diff line change
@@ -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);