Permalink
Browse files

Magic method __get should be declared as public

git-svn-id: http://svn.php.net/repository/pear/packages/Net_SSH2/trunk@302221 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent c003ec6 commit d45e0c567a01d6e278a51d06adc83789a0e540de @CloCkWeRX CloCkWeRX committed Aug 14, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 Net/SSH2.php
View
@@ -87,7 +87,7 @@
* @throws Net_SSH2_Exception If trying to get an undefined properties.
* @return mixed The value of the object on success
*/
- protected function __get($key)
+ public function __get($key)
{
if (!key_exists($key, $this->allowed_options)) {
throw new Net_SSH2_Exception(
@@ -112,7 +112,7 @@ protected function __get($key)
* @throws Net_SSH2_Exception If trying to set an undefined properties.
* @return mixed True on success
*/
- protected function __set($key, $value)
+ public function __set($key, $value)
{
if (!key_exists($key, $this->allowed_options)) {
throw new Net_SSH2_Exception(

0 comments on commit d45e0c5

Please sign in to comment.