Skip to content

Commit

Permalink
Add PHPDoc return types
Browse files Browse the repository at this point in the history
  • Loading branch information
franmomu committed May 18, 2022
1 parent 972af15 commit 3701ce0
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions lib/StripeObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,24 +194,37 @@ public function __debugInfo()
}

// ArrayAccess methods

/**
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetSet($k, $v)
{
$this->{$k} = $v;
}

/**
* @return bool
*/
#[\ReturnTypeWillChange]
public function offsetExists($k)
{
return \array_key_exists($k, $this->_values);
}

/**
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetUnset($k)
{
unset($this->{$k});
}

/**
* @return mixed
*/
#[\ReturnTypeWillChange]
public function offsetGet($k)
{
Expand Down

0 comments on commit 3701ce0

Please sign in to comment.