Skip to content

Commit

Permalink
Fix ArrayAccess interface
Browse files Browse the repository at this point in the history
  • Loading branch information
annuh committed Dec 1, 2021
1 parent d53b5f0 commit 1599f05
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"sort-packages": true
},
"require": {
"php": "^5.4|^7.0|^8.0"
"php": ">=5.4"
},
"require-dev": {
"doctrine/orm": "^2.5",
Expand Down
5 changes: 5 additions & 0 deletions src/ParamBag.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ public function __unset($key)
*
* @return bool
*/
#[\ReturnTypeWillChange]
public function offsetExists($key)
{
return $this->__isset($key);
Expand All @@ -117,6 +118,7 @@ public function offsetExists($key)
*
* @return mixed
*/
#[\ReturnTypeWillChange]
public function offsetGet($key)
{
return $this->__get($key);
Expand All @@ -132,6 +134,7 @@ public function offsetGet($key)
*
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetSet($key, $value)
{
throw new \LogicException('Modifying parameters is not permitted');
Expand All @@ -146,6 +149,7 @@ public function offsetSet($key, $value)
*
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetUnset($key)
{
throw new \LogicException('Modifying parameters is not permitted');
Expand All @@ -156,6 +160,7 @@ public function offsetUnset($key)
*
* @return \ArrayIterator
*/
#[\ReturnTypeWillChange]
public function getIterator()
{
return new \ArrayIterator($this->params);
Expand Down

0 comments on commit 1599f05

Please sign in to comment.