mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-29 04:23:34 +00:00
Function setVar should not retun a value
This commit is contained in:
parent
31d9cf3015
commit
654bb1a704
@ -45,7 +45,6 @@ abstract class Objects
|
|||||||
* @param Object $obj
|
* @param Object $obj
|
||||||
* @param string $var
|
* @param string $var
|
||||||
* @param mixed $val
|
* @param mixed $val
|
||||||
* @return mixed
|
|
||||||
* @access public
|
* @access public
|
||||||
*/
|
*/
|
||||||
public static function setVar($obj, $var, $val)
|
public static function setVar($obj, $var, $val)
|
||||||
@ -53,7 +52,7 @@ abstract class Objects
|
|||||||
$reflection = new \ReflectionClass(get_class($obj));
|
$reflection = new \ReflectionClass(get_class($obj));
|
||||||
$prop = $reflection->getProperty($var);
|
$prop = $reflection->getProperty($var);
|
||||||
$prop->setAccessible(true);
|
$prop->setAccessible(true);
|
||||||
return $prop->setValue($obj, $val);
|
$prop->setValue($obj, $val);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user