Commit 611f8d7e by Taylor Otwell

Merge pull request #265 from kbanman/viewfix

Fix inconsistent data referencing in View
parents 765dcc8b a3cbe24b
...@@ -358,7 +358,7 @@ class View implements ArrayAccess { ...@@ -358,7 +358,7 @@ class View implements ArrayAccess {
*/ */
public function __get($key) public function __get($key)
{ {
return $this[$key]; return $this->data[$key];
} }
/** /**
...@@ -366,7 +366,15 @@ class View implements ArrayAccess { ...@@ -366,7 +366,15 @@ class View implements ArrayAccess {
*/ */
public function __set($key, $value) public function __set($key, $value)
{ {
$this[$key] = $value; $this->data[$key] = $value;
}
/**
* Magic Method for checking dynamically-set data.
*/
public function __isset($key)
{
return isset($this->data[$key]);
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment