Skip to content

Commit

Permalink
Merge pull request #211 from InteractionDesignFoundation/1-php81
Browse files Browse the repository at this point in the history
Support PHP 8.1
  • Loading branch information
Torann committed Dec 20, 2021
2 parents bb6870a + 65f2fea commit ec99531
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
8 changes: 4 additions & 4 deletions src/Location.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand All @@ -166,7 +166,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
public function offsetGet($offset)
public function offsetGet(mixed $offset): mixed
{
return $this->$offset;
}
Expand All @@ -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;
}
Expand All @@ -191,7 +191,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
public function offsetUnset($offset)
public function offsetUnset(mixed $offset): void
{
unset($this->$offset);
}
Expand Down

0 comments on commit ec99531

Please sign in to comment.