commit 69f975c0be6a92b7c564342a84891e4accac7d11
parent 9b8f381090f1f0eb0dd52ccd34ff0a7c2f85b33e
Author: finwo <finwo@pm.me>
Date: Fri, 22 Apr 2016 22:29:31 +0200
Referenced variables
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/Event.php b/src/Event.php
@@ -60,11 +60,11 @@ class Event
return $accessor->get($this, $key, '.');
}
- public function set($key, $value)
+ public function set($key, &$value)
{
// Try directly, might be the quickest way
if (isset($this->{$key})) {
- $this->{$key} = $value;
+ $this->{$key} = &$value;
return $this;
}