Skip to content

Commit

Permalink
mute deprecation warnings on 8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Nielsvanpach committed Dec 13, 2021
1 parent 94c9af3 commit 41417ce
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Sheet.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,21 +53,24 @@ public function __toString(): string
return $this->toJson();
}

public function offsetExists($key)
public function offsetExists($key): bool
{
return ! is_null($this->getAttribute($key));
}

#[\ReturnTypeWillChange]
public function offsetGet($key)
{
return $this->getAttribute($key);
}

#[\ReturnTypeWillChange]
public function offsetSet($key, $value)
{
$this->$key = $value;
}

#[\ReturnTypeWillChange]
public function offsetUnset($key)
{
unset($this->attributes[$key]);
Expand Down

0 comments on commit 41417ce

Please sign in to comment.