Function setVar should not retun a value

This commit is contained in:
Sokolovskyy Roman 2017-07-20 11:03:26 +02:00
parent 31d9cf3015
commit 654bb1a704

View File

@ -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);
} }
/** /**