Skip to content

Commit

Permalink
Add missing ReturnTypeWillChange (#1213)
Browse files Browse the repository at this point in the history
  • Loading branch information
spaze authored Dec 6, 2021
1 parent 6bfd895 commit e38b9dd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public function setFilters($filters)
$this->filters = $filters;
}

#[\ReturnTypeWillChange]
public function offsetGet($k)
{
if (\is_string($k)) {
Expand Down
2 changes: 2 additions & 0 deletions lib/StripeObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ public function offsetUnset($k)
unset($this->{$k});
}

#[\ReturnTypeWillChange]
public function offsetGet($k)
{
return \array_key_exists($k, $this->_values) ? $this->_values[$k] : null;
Expand Down Expand Up @@ -423,6 +424,7 @@ public function serializeParamsValue($value, $original, $unsaved, $force, $key =
}
}

#[\ReturnTypeWillChange]
public function jsonSerialize()
{
return $this->toArray();
Expand Down
1 change: 1 addition & 0 deletions lib/Util/CaseInsensitiveArray.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ public function offsetUnset($offset)
unset($this->container[$offset]);
}

#[\ReturnTypeWillChange]
public function offsetGet($offset)
{
$offset = static::maybeLowercase($offset);
Expand Down

0 comments on commit e38b9dd

Please sign in to comment.