diff --git a/src/Symfony/Component/PropertyInfo/Tests/Extractor/ReflectionExtractorTest.php b/src/Symfony/Component/PropertyInfo/Tests/Extractor/ReflectionExtractorTest.php index fddb81422a051..2e73a6aedf51e 100644 --- a/src/Symfony/Component/PropertyInfo/Tests/Extractor/ReflectionExtractorTest.php +++ b/src/Symfony/Component/PropertyInfo/Tests/Extractor/ReflectionExtractorTest.php @@ -806,10 +806,6 @@ public function testCamelize(string $input, string $expected) $reflection = new \ReflectionClass($this->extractor); $method = $reflection->getMethod('camelize'); - if (\PHP_VERSION_ID < 80500) { - $method->setAccessible(true); - } - $this->assertSame($expected, $method->invoke($this->extractor, $input)); }