From 8eca2000238b2fbac7057654f08da00dd1b8eb88 Mon Sep 17 00:00:00 2001 From: Molkobain Date: Wed, 24 Jan 2024 18:57:27 +0100 Subject: [PATCH] =?UTF-8?q?N=C2=B06037=20-=20PHP=208.3:=20Fix=20calling=20?= =?UTF-8?q?ReflectionProperty::setValue()=20with=20a=20single=20argument?= =?UTF-8?q?=20is=20deprecated?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/php-unit-tests/src/BaseTestCase/ItopTestCase.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/php-unit-tests/src/BaseTestCase/ItopTestCase.php b/tests/php-unit-tests/src/BaseTestCase/ItopTestCase.php index 13a6d5dee..a288a404d 100644 --- a/tests/php-unit-tests/src/BaseTestCase/ItopTestCase.php +++ b/tests/php-unit-tests/src/BaseTestCase/ItopTestCase.php @@ -345,7 +345,7 @@ abstract class ItopTestCase extends TestCase foreach ($class->getProperties() as $property) { if (!$property->isStatic()) continue; $property->setAccessible(true); - $property->setValue(static::$aBackupStaticProperties[$sClass][$property->getName()]); + $property->setValue(null, static::$aBackupStaticProperties[$sClass][$property->getName()]); } } @@ -381,7 +381,7 @@ abstract class ItopTestCase extends TestCase public function SetNonPublicStaticProperty(string $sClass, string $sProperty, $value) { $oProperty = $this->GetProperty($sClass, $sProperty); - $oProperty->setValue($value); + $oProperty->setValue(null, $value); } public static function RecurseRmdir($dir)