Skip to content

Commit

Permalink
Merge pull request #378 from georgesamy/master
Browse files Browse the repository at this point in the history
fix php8.1 deprecated message
  • Loading branch information
ksvirkou-hubspot authored Feb 15, 2022
2 parents a133824 + dc06898 commit e335bf8
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 e335bf8

Please sign in to comment.