Skip to content

Commit

Permalink
Merge pull request #24 from ThePay/hotfix-2281-return-type-change
Browse files Browse the repository at this point in the history
Hotfix 2281 return type change
  • Loading branch information
Triplkrypl authored Aug 31, 2022
2 parents 0d69ccd + bfbc7fb commit 8f22968
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/Model/Collection/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ public function offsetUnset($offset)
* @param string|int $offset
* @return TValue|null
*/
#[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->data[$offset]) ? $this->data[$offset] : null;
Expand All @@ -93,6 +94,7 @@ public function rewind()
/**
* @return TValue
*/
#[\ReturnTypeWillChange]
public function current()
{
return $this->data[$this->iteratorPosition];
Expand All @@ -101,6 +103,7 @@ public function current()
/**
* @return int
*/
#[\ReturnTypeWillChange]
public function key()
{
return $this->iteratorPosition;
Expand Down
2 changes: 1 addition & 1 deletion src/TheClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
class TheClient
{
/** @var string */
const VERSION = '1.4.1';
const VERSION = '1.4.2';

/** @var TheConfig */
private $config;
Expand Down

0 comments on commit 8f22968

Please sign in to comment.