Skip to content

Commit

Permalink
Merge pull request #77 from PHPCSStandards/php-8.3/reportwidthtest-fi…
Browse files Browse the repository at this point in the history
…x-deprecation-notice

PHP 8.3 | ReportWidthTest: fix deprecation notices for ReflectionProperty::setValue()
  • Loading branch information
jrfnl authored Dec 4, 2023
2 parents 26df2fc + d906762 commit d11632a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Core/Config/ReportWidthTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ public static function setStaticProperty($name, $value)
{
$property = new ReflectionProperty('PHP_CodeSniffer\Config', $name);
$property->setAccessible(true);
$property->setValue($value);
$property->setValue(null, $value);
$property->setAccessible(false);

}//end setStaticProperty()
Expand Down

0 comments on commit d11632a

Please sign in to comment.