Skip to content

Commit ec99531

Browse files
authored
Merge pull request #211 from InteractionDesignFoundation/1-php81
Support PHP 8.1
2 parents bb6870a + 65f2fea commit ec99531

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
}
1919
],
2020
"require": {
21-
"php": "^7.3|^8.0",
21+
"php": "^8.0",
2222
"illuminate/support": "^8.0",
2323
"illuminate/console": "^8.0",
2424
"illuminate/cache": "^8.0"

src/Location.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ public function __set($key, $value)
154154
*
155155
* @return bool
156156
*/
157-
public function offsetExists($offset)
157+
public function offsetExists(mixed $offset): bool
158158
{
159159
return isset($this->$offset);
160160
}
@@ -166,7 +166,7 @@ public function offsetExists($offset)
166166
*
167167
* @return mixed
168168
*/
169-
public function offsetGet($offset)
169+
public function offsetGet(mixed $offset): mixed
170170
{
171171
return $this->$offset;
172172
}
@@ -179,7 +179,7 @@ public function offsetGet($offset)
179179
*
180180
* @return void
181181
*/
182-
public function offsetSet($offset, $value)
182+
public function offsetSet(mixed $offset, mixed $value): void
183183
{
184184
$this->$offset = $value;
185185
}
@@ -191,7 +191,7 @@ public function offsetSet($offset, $value)
191191
*
192192
* @return void
193193
*/
194-
public function offsetUnset($offset)
194+
public function offsetUnset(mixed $offset): void
195195
{
196196
unset($this->$offset);
197197
}

0 commit comments

Comments
 (0)