Skip to content

Commit

Permalink
fix php8.1 deprecated message
Browse files Browse the repository at this point in the history
  • Loading branch information
georgesamy committed Feb 10, 2022
1 parent a133824 commit dc06898
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Http/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function toArray()
*
* @return bool
*/
public function offsetExists($offset)
public function offsetExists($offset): bool
{
return isset($this->data->{$offset});
}
Expand All @@ -74,7 +74,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
public function offsetGet($offset)
public function offsetGet($offset): mixed
{
$data = $this->toArray();

Expand All @@ -87,7 +87,7 @@ public function offsetGet($offset)
* @param mixed $offset
* @param mixed $value
*/
public function offsetSet($offset, $value)
public function offsetSet($offset, $value): void
{
$this->data->{$offset} = $value;
}
Expand All @@ -97,7 +97,7 @@ public function offsetSet($offset, $value)
*
* @param mixed $offset
*/
public function offsetUnset($offset)
public function offsetUnset($offset): void
{
unset($this->data->{$offset});
}
Expand Down

0 comments on commit dc06898

Please sign in to comment.