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
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ php:
- 5.4
- 5.5
- 5.6
- 8.0
- 8.1
- hhvm

env:
Expand Down
7 changes: 7 additions & 0 deletions src/Phpforce/SoapClient/Result/RecordIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ public function __construct(Client $client, QueryResult $result)
* {@inheritdoc}
* @return object
*/
#[\ReturnTypeWillChange]
public function current()
{
return $this->current;
Expand Down Expand Up @@ -99,6 +100,7 @@ protected function getObjectAt($pointer)
*
* @return int|null
*/
#[\ReturnTypeWillChange]
public function key()
{
return $this->pointer;
Expand All @@ -107,6 +109,7 @@ public function key()
/**
* {@inheritdoc}
*/
#[\ReturnTypeWillChange]
public function next()
{
$this->pointer++;
Expand All @@ -115,6 +118,7 @@ public function next()
/**
* {@inheritdoc}
*/
#[\ReturnTypeWillChange]
public function rewind()
{
$this->pointer = 0;
Expand All @@ -125,6 +129,7 @@ public function rewind()
*
* @return boolean
*/
#[\ReturnTypeWillChange]
public function valid()
{
return null != $this->getObjectAt($this->pointer);
Expand Down Expand Up @@ -170,6 +175,7 @@ protected function queryMore()
*
* @return int
*/
#[\ReturnTypeWillChange]
public function count()
{
return $this->queryResult->getSize();
Expand All @@ -178,6 +184,7 @@ public function count()
/**
* @param int $position
*/
#[\ReturnTypeWillChange]
public function seek($position)
{
return $this->getObjectAt($position);
Expand Down