Skip to content

Commit de16f97

Browse files
committed
Fixed PHP8.1 return types
1 parent db60922 commit de16f97

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Layout.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ public function __unset($attribute)
240240
* @param mixed $attribute
241241
* @return bool
242242
*/
243-
public function offsetExists($attribute)
243+
public function offsetExists(mixed $attribute): bool
244244
{
245245
return ! is_null($this->getAttribute($attribute));
246246
}
@@ -251,7 +251,7 @@ public function offsetExists($attribute)
251251
* @param mixed $attribute
252252
* @return mixed
253253
*/
254-
public function offsetGet($attribute)
254+
public function offsetGet(mixed $attribute): mixed
255255
{
256256
return $this->getAttribute($attribute);
257257
}
@@ -263,7 +263,7 @@ public function offsetGet($attribute)
263263
* @param mixed $value
264264
* @return void
265265
*/
266-
public function offsetSet($attribute, $value)
266+
public function offsetSet($attribute, $value): void
267267
{
268268
$this->setAttribute($attribute, $value);
269269
}
@@ -274,7 +274,7 @@ public function offsetSet($attribute, $value)
274274
* @param mixed $attribute
275275
* @return void
276276
*/
277-
public function offsetUnset($attribute)
277+
public function offsetUnset($attribute): void
278278
{
279279
unset($this->attributes[$attribute]);
280280
}

0 commit comments

Comments
 (0)