Skip to content

Commit cea1b6a

Browse files
committed
make this compatible with PHP 8.2 fixes #2
1 parent f53c11c commit cea1b6a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/CurlInfo.php

+4-3
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function __get($prop)
7272
* The return value will be casted to boolean if non-boolean was returned.
7373
* @since 5.0.0
7474
*/
75-
public function offsetExists($offset)
75+
public function offsetExists($offset): bool
7676
{
7777
return array_key_exists($offset, $this->info);
7878
}
@@ -86,6 +86,7 @@ public function offsetExists($offset)
8686
* @return mixed Can return all value types.
8787
* @since 5.0.0
8888
*/
89+
#[\ReturnTypeWillChange]
8990
public function offsetGet($offset)
9091
{
9192
return $this->info[$offset];
@@ -103,7 +104,7 @@ public function offsetGet($offset)
103104
* @return void
104105
* @since 5.0.0
105106
*/
106-
public function offsetSet($offset, $value)
107+
public function offsetSet($offset, $value) : void
107108
{
108109
// READONLY
109110
}
@@ -117,7 +118,7 @@ public function offsetSet($offset, $value)
117118
* @return void
118119
* @since 5.0.0
119120
*/
120-
public function offsetUnset($offset)
121+
public function offsetUnset($offset) : void
121122
{
122123
// READONLY
123124
}

0 commit comments

Comments
 (0)