Skip to content

Commit d06e4e0

Browse files
xabbuhnicolas-grekas
authored andcommitted
ReflectionMethod::setAccessible() is no-op since PHP 8.1
1 parent 01344ae commit d06e4e0

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Tests/Extractor/ReflectionExtractorTest.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -806,10 +806,6 @@ public function testCamelize(string $input, string $expected)
806806
$reflection = new \ReflectionClass($this->extractor);
807807
$method = $reflection->getMethod('camelize');
808808

809-
if (\PHP_VERSION_ID < 80500) {
810-
$method->setAccessible(true);
811-
}
812-
813809
$this->assertSame($expected, $method->invoke($this->extractor, $input));
814810
}
815811

0 commit comments

Comments
 (0)