Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add PHPDoc return types
Browse files Browse the repository at this point in the history
franmomu committed May 18, 2022

Verified

This commit was signed with the committer’s verified signature. The key has expired.
colombod Diego Colombo
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
@@ -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)
{

0 comments on commit 3701ce0

Please sign in to comment.