From ef9e803a997dcf4444d9f6f34c4625d0df95ddb4 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Thu, 13 Nov 2025 08:44:33 +0100 Subject: [PATCH] ReflectionMethod::setAccessible() is no-op since PHP 8.1 --- .../PropertyInfo/Tests/Extractor/ReflectionExtractorTest.php | 4 ---- 1 file changed, 4 deletions(-) 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)); }