Skip to content

Commit 48c0104

Browse files
author
John Allsup
committed
Added :void type annotations to offsetSet and offsetUnset as this was causing errors
1 parent ff6bc47 commit 48c0104

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Set.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ public function intersect(Set $set): Set
247247
* @param mixed $value The value to insert
248248
* @return void
249249
*/
250-
public function offsetSet($offset, $value)
250+
public function offsetSet($offset, $value) : void
251251
{
252252
$temp = $this->values();
253253

@@ -270,7 +270,7 @@ public function offsetSet($offset, $value)
270270
* @param int $offset The key to remove a value at
271271
* @return void
272272
*/
273-
public function offsetUnset($offset)
273+
public function offsetUnset($offset) : void
274274
{
275275
$temp = $this->values();
276276

0 commit comments

Comments
 (0)