From 420071aa148177870fea0e818a64ce5c2eb327bd Mon Sep 17 00:00:00 2001 From: Aad Mathijssen Date: Wed, 21 Aug 2024 18:03:33 +0200 Subject: [PATCH] Fix: resolve PHP 8.3 deprecation in test suite (#161) Resolve the following deprecation when running the test suite with PHP 8.3: Remaining self deprecation notices (1) 1x: Calling ReflectionProperty::setValue() with a single argument is deprecated 1x in SemverTest::testUsortShouldInitialVersionParserClass from Composer\Semver Co-authored-by: Aad Mathijssen --- tests/SemverTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/SemverTest.php b/tests/SemverTest.php index fb1e3af0..93e2b6be 100644 --- a/tests/SemverTest.php +++ b/tests/SemverTest.php @@ -66,7 +66,7 @@ public function testUsortShouldInitialVersionParserClass() $semver = new \ReflectionClass('\Composer\Semver\Semver'); $versionParserProperty = $semver->getProperty('versionParser'); $versionParserProperty->setAccessible(true); - $versionParserProperty->setValue(null); + $versionParserProperty->setValue(null, null); $manipulateVersionStringMethod = $semver->getMethod('usort'); $manipulateVersionStringMethod->setAccessible(true);