Skip to content

Commit

Permalink
Merge pull request #11 from Bjornar97/master
Browse files Browse the repository at this point in the history
Add return types to array methods in Tags class
  • Loading branch information
ghostzero authored Mar 22, 2023
2 parents 481ca58 + e5447a2 commit 9ea6f1b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Tags.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public static function parse(string $message): self
return new self($result);
}

public function offsetSet($offset, $value)
public function offsetSet($offset, $value): void
{
if (is_null($offset)) {
$this->tags[] = $value;
Expand All @@ -36,12 +36,12 @@ public function offsetSet($offset, $value)
}
}

public function offsetExists($offset)
public function offsetExists($offset): bool
{
return isset($this->tags[$offset]);
}

public function offsetUnset($offset)
public function offsetUnset($offset): void
{
unset($this->tags[$offset]);
}
Expand Down

0 comments on commit 9ea6f1b

Please sign in to comment.