Permalink
Browse files

fixing pass-by-reference issues

  • Loading branch information...
1 parent e66e9be commit 21f95f3bdb9f1b50dc930242cd4a19585f5193ae @Zeelot Zeelot committed Aug 3, 2011
Showing with 3 additions and 3 deletions.
  1. +1 −1 classes/interface/event.php
  2. +2 −2 classes/kohana/event.php
@@ -3,7 +3,7 @@
interface Interface_Event {
public function __construct( & $subject, array $arguments = array());
- public function get_subject();
+ public function & get_subject();
public function get_arguments();
public function stop_propagation();
public function is_propagation_stopped();
@@ -8,11 +8,11 @@ class Kohana_Event implements Interface_Event {
public function __construct( & $subject = NULL, array $arguments = array())
{
- $this->_subject = $subject;
+ $this->_subject =& $subject;
$this->_arguments = $arguments;
}
- public function get_subject()
+ public function & get_subject()
{
return $this->_subject;
}

0 comments on commit 21f95f3

Please sign in to comment.