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