diff --git a/composer.json b/composer.json index b9e275b..bc527c2 100644 --- a/composer.json +++ b/composer.json @@ -18,7 +18,7 @@ } ], "require": { - "php": "^7.3|^8.0", + "php": "^8.0", "illuminate/support": "^8.0", "illuminate/console": "^8.0", "illuminate/cache": "^8.0" diff --git a/src/Location.php b/src/Location.php index 76b03ee..45b94c9 100644 --- a/src/Location.php +++ b/src/Location.php @@ -154,7 +154,7 @@ public function __set($key, $value) * * @return bool */ - public function offsetExists($offset) + public function offsetExists(mixed $offset): bool { return isset($this->$offset); } @@ -166,7 +166,7 @@ public function offsetExists($offset) * * @return mixed */ - public function offsetGet($offset) + public function offsetGet(mixed $offset): mixed { return $this->$offset; } @@ -179,7 +179,7 @@ public function offsetGet($offset) * * @return void */ - public function offsetSet($offset, $value) + public function offsetSet(mixed $offset, mixed $value): void { $this->$offset = $value; } @@ -191,7 +191,7 @@ public function offsetSet($offset, $value) * * @return void */ - public function offsetUnset($offset) + public function offsetUnset(mixed $offset): void { unset($this->$offset); }