Skip to content

Commit

Permalink
Possible fix for overloaded method notice.
Browse files Browse the repository at this point in the history
  • Loading branch information
tnytown committed Aug 17, 2014
1 parent 98d39f4 commit c95126b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Player.php
Expand Up @@ -90,6 +90,13 @@ public function __get($name){
}
return null;
}

public function &__get($name){
if(isset($this->{$name})){
return ($this->{$name});
}
return null;
}

/**
* @param integer $clientID
Expand Down

0 comments on commit c95126b

Please sign in to comment.