diff --git a/src/Model.php b/src/Model.php index ff67cbe..7e30b0e 100755 --- a/src/Model.php +++ b/src/Model.php @@ -318,6 +318,7 @@ public function toArray() * * @return array */ + #[\ReturnTypeWillChange] public function jsonSerialize() { return $this->toArray(); @@ -330,7 +331,7 @@ public function jsonSerialize() * * @return bool */ - public function offsetExists($offset) + public function offsetExists($offset): bool { return !is_null($this->getAttribute($offset)); } @@ -342,6 +343,7 @@ public function offsetExists($offset) * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return $this->getAttribute($offset); @@ -355,7 +357,7 @@ public function offsetGet($offset) * * @return void */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { $this->setAttribute($offset, $value); } @@ -367,7 +369,7 @@ public function offsetSet($offset, $value) * * @return void */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { unset($this->attributes[$offset]); }