Skip to content

Commit

Permalink
Merge pull request #154 from srjlewis/master
Browse files Browse the repository at this point in the history
PHP 8.1 fixes for deprecations
  • Loading branch information
Stafox authored Nov 12, 2021
2 parents d347d8f + 77f533b commit ae4895e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/iTunes/PendingRenewalInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ public function isInGracePeriod(): bool
*
* @throws RunTimeException
*/
#[\ReturnTypeWillChange]
public function offsetSet($key, $value)
{
$this->raw_data[$key] = $value;
Expand All @@ -294,6 +295,7 @@ public function offsetSet($key, $value)
*
* @return mixed
*/
#[\ReturnTypeWillChange]
public function offsetGet($key)
{
return $this->raw_data[$key];
Expand All @@ -304,6 +306,7 @@ public function offsetGet($key)
*
* @param $key
*/
#[\ReturnTypeWillChange]
public function offsetUnset($key)
{
unset($this->raw_data[$key]);
Expand All @@ -316,6 +319,7 @@ public function offsetUnset($key)
*
* @return bool
*/
#[\ReturnTypeWillChange]
public function offsetExists($key): bool
{
return isset($this->raw_data[$key]);
Expand Down
4 changes: 4 additions & 0 deletions src/iTunes/PurchaseItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ public function getCancellationDate(): ?Carbon
*
* @throws RunTimeException
*/
#[\ReturnTypeWillChange]
public function offsetSet($key, $value)
{
$this->raw_data[$key] = $value;
Expand All @@ -314,6 +315,7 @@ public function offsetSet($key, $value)
*
* @return mixed
*/
#[\ReturnTypeWillChange]
public function offsetGet($key)
{
return $this->raw_data[$key];
Expand All @@ -324,6 +326,7 @@ public function offsetGet($key)
*
* @param $key
*/
#[\ReturnTypeWillChange]
public function offsetUnset($key)
{
unset($this->raw_data[$key]);
Expand All @@ -336,6 +339,7 @@ public function offsetUnset($key)
*
* @return bool
*/
#[\ReturnTypeWillChange]
public function offsetExists($key)
{
return isset($this->raw_data[$key]);
Expand Down

0 comments on commit ae4895e

Please sign in to comment.