Skip to content

Commit

Permalink
Add missing return types to offsetSet & offsetUnset (#29)
Browse files Browse the repository at this point in the history
Co-authored-by: joel-44 <[email protected]>
  • Loading branch information
joel-loycom and joel-44 authored Jun 22, 2022
1 parent 05fb1c8 commit ce8857b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Orders/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ public function toArray(): array
* @param mixed $value
* @return void
*/
public function offsetSet($offset, $value)
public function offsetSet($offset, $value): void
{
if (is_null($offset)) {
$this->purchase_units[] = $value;
Expand All @@ -216,7 +216,7 @@ public function offsetSet($offset, $value)
* @param mixed $offset
* @return void
*/
public function offsetUnset($offset)
public function offsetUnset($offset): void
{
unset($this->purchase_units[$offset]);
}
Expand Down

0 comments on commit ce8857b

Please sign in to comment.