From 654bb1a704bac75525dc9822cd09c6938df7cee7 Mon Sep 17 00:00:00 2001 From: Sokolovskyy Roman Date: Thu, 20 Jul 2017 11:03:26 +0200 Subject: [PATCH] Function setVar should not retun a value --- phpseclib/Common/Functions/Objects.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/phpseclib/Common/Functions/Objects.php b/phpseclib/Common/Functions/Objects.php index cb87b1a7..607e0181 100644 --- a/phpseclib/Common/Functions/Objects.php +++ b/phpseclib/Common/Functions/Objects.php @@ -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); } /**