Skip to content

Commit d11632a

Browse files
authored
Merge pull request #77 from PHPCSStandards/php-8.3/reportwidthtest-fix-deprecation-notice
PHP 8.3 | ReportWidthTest: fix deprecation notices for ReflectionProperty::setValue()
2 parents 26df2fc + d906762 commit d11632a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/Core/Config/ReportWidthTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ public static function setStaticProperty($name, $value)
295295
{
296296
$property = new ReflectionProperty('PHP_CodeSniffer\Config', $name);
297297
$property->setAccessible(true);
298-
$property->setValue($value);
298+
$property->setValue(null, $value);
299299
$property->setAccessible(false);
300300

301301
}//end setStaticProperty()

0 commit comments

Comments
 (0)