Skip to content

Commit

Permalink
Fix: resolve PHP 8.3 deprecation in test suite (#161)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
aadmathijssen and Aad Mathijssen authored Aug 21, 2024
1 parent c51258e commit 420071a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/SemverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 420071a

Please sign in to comment.