Skip to content

Commit 0a17b64

Browse files
authored
Use ReturnTypeWillChange instead of return types
This is to ensure compatibility with PHP <7
1 parent 49e43da commit 0a17b64

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

src/Config.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ private function merge(array $config)
6262
$this->config = array_replace($this->config, $config);
6363
}
6464

65-
public function offsetExists($offset): bool
65+
#[\ReturnTypeWillChange]
66+
public function offsetExists($offset)
6667
{
6768
return isset($this->config[$offset]);
6869
}
@@ -73,12 +74,14 @@ public function offsetGet($offset)
7374
return $this->config[$offset];
7475
}
7576

76-
public function offsetSet($offset, $value): void
77+
#[\ReturnTypeWillChange]
78+
public function offsetSet($offset, $value)
7779
{
7880
$this->config[$offset] = $value;
7981
}
8082

81-
public function offsetUnset($offset): void
83+
#[\ReturnTypeWillChange]
84+
public function offsetUnset($offset)
8285
{
8386
unset($this->config[$offset]);
8487
}

0 commit comments

Comments
 (0)