Skip to content

Commit 13e9dae

Browse files
committed
Fixed reference issue in ConfigurationOption
1 parent 4e6f3f7 commit 13e9dae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/phpFastCache/Config/ConfigurationOption.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class ConfigurationOption extends ArrayObject
8686
public function __construct(...$args)
8787
{
8888
parent::__construct(...$args);
89-
$array = $this->getArray();
89+
$array =& $this->getArray();
9090

9191
/**
9292
* Detect unwanted keys and throw an exception.
@@ -101,6 +101,7 @@ public function __construct(...$args)
101101
}
102102

103103
foreach (get_object_vars($this) as $property => $value) {
104+
104105
if(array_key_exists($property, $array)){
105106
$this->$property = &$array[ $property ];
106107
}else{

0 commit comments

Comments
 (0)