N°5491-fix redundant GetNonPublicStaticProperty

This commit is contained in:
odain
2023-09-13 10:30:56 +02:00
parent 3c51d6fb98
commit 3e258f32cc

View File

@@ -276,25 +276,9 @@ abstract class ItopTestCase extends TestCase
}
/**
* @param string $sClass
* @param string $sProperty
*
* @return mixed property
*
* @throws \ReflectionException
* @since 2.7.10 3.1.0
*/
public function GetNonPublicStaticProperty(string $sClass, string $sProperty)
{
$oProperty = $this->GetProperty($sClass, $sProperty);
return $oProperty->getValue();
}
/**
* @since 3.1.0
*/
public function GetNonPublicStaticProperty(string $sClass, string $sProperty)
{
/** @noinspection OneTimeUseVariablesInspection */
$oProperty = $this->GetProperty($sClass, $sProperty);