Skip to content

Commit

Permalink
make this compatible with PHP 8.2 fixes #2
Browse files Browse the repository at this point in the history
  • Loading branch information
Athlon1600 committed Oct 24, 2023
1 parent f53c11c commit cea1b6a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/CurlInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function __get($prop)
* The return value will be casted to boolean if non-boolean was returned.
* @since 5.0.0
*/
public function offsetExists($offset)
public function offsetExists($offset): bool
{
return array_key_exists($offset, $this->info);
}
Expand All @@ -86,6 +86,7 @@ public function offsetExists($offset)
* @return mixed Can return all value types.
* @since 5.0.0
*/
#[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return $this->info[$offset];
Expand All @@ -103,7 +104,7 @@ public function offsetGet($offset)
* @return void
* @since 5.0.0
*/
public function offsetSet($offset, $value)
public function offsetSet($offset, $value) : void
{
// READONLY
}
Expand All @@ -117,7 +118,7 @@ public function offsetSet($offset, $value)
* @return void
* @since 5.0.0
*/
public function offsetUnset($offset)
public function offsetUnset($offset) : void
{
// READONLY
}
Expand Down

0 comments on commit cea1b6a

Please sign in to comment.