[PropertyAccess] Fix dynamic property accessing.
This commit is contained in:
parent
5298940707
commit
352dfb9890
@ -404,7 +404,7 @@ class PropertyAccessor implements PropertyAccessorInterface
|
|||||||
// returns true, consequently the following line will result in a
|
// returns true, consequently the following line will result in a
|
||||||
// fatal error.
|
// fatal error.
|
||||||
|
|
||||||
$object->{$access[self::ACCESS_NAME]} = $value;
|
$object->$property = $value;
|
||||||
} elseif (self::ACCESS_TYPE_MAGIC === $access[self::ACCESS_TYPE]) {
|
} elseif (self::ACCESS_TYPE_MAGIC === $access[self::ACCESS_TYPE]) {
|
||||||
$object->{$access[self::ACCESS_NAME]}($value);
|
$object->{$access[self::ACCESS_NAME]}($value);
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user