Skip to content

Commit ce8857b

Browse files
joel-loycomjoel-44
andauthored
Add missing return types to offsetSet & offsetUnset (#29)
Co-authored-by: joel-44 <[email protected]>
1 parent 05fb1c8 commit ce8857b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Orders/Order.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ public function toArray(): array
201201
* @param mixed $value
202202
* @return void
203203
*/
204-
public function offsetSet($offset, $value)
204+
public function offsetSet($offset, $value): void
205205
{
206206
if (is_null($offset)) {
207207
$this->purchase_units[] = $value;
@@ -216,7 +216,7 @@ public function offsetSet($offset, $value)
216216
* @param mixed $offset
217217
* @return void
218218
*/
219-
public function offsetUnset($offset)
219+
public function offsetUnset($offset): void
220220
{
221221
unset($this->purchase_units[$offset]);
222222
}

0 commit comments

Comments
 (0)