mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-28 12:10:59 +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 string $var
|
||||
* @param mixed $val
|
||||
* @return mixed
|
||||
* @access public
|
||||
*/
|
||||
public static function setVar($obj, $var, $val)
|
||||
@ -53,7 +52,7 @@ abstract class Objects
|
||||
$reflection = new \ReflectionClass(get_class($obj));
|
||||
$prop = $reflection->getProperty($var);
|
||||
$prop->setAccessible(true);
|
||||
return $prop->setValue($obj, $val);
|
||||
$prop->setValue($obj, $val);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user