From 41417ce8a6b50ae8ea2a86eef621b15e5b800d6f Mon Sep 17 00:00:00 2001 From: Niels Vanpachtenbeke <10651054+Nielsvanpach@users.noreply.github.com> Date: Mon, 13 Dec 2021 14:58:46 +0100 Subject: [PATCH] mute deprecation warnings on 8.1 --- src/Sheet.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Sheet.php b/src/Sheet.php index 009b306..6639ac5 100644 --- a/src/Sheet.php +++ b/src/Sheet.php @@ -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]);