Skip to content

Commit 17c1070

Browse files
minor #62375 [PropertyInfo] ReflectionMethod::setAccessible() is no-op since PHP 8.1 (xabbuh)
This PR was merged into the 6.4 branch. Discussion ---------- [PropertyInfo] ReflectionMethod::setAccessible() is no-op since PHP 8.1 | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | | License | MIT added in #62334, this allows to entirely remove it after merging into `7.3` like we did everywhere else Commits ------- ef9e803 ReflectionMethod::setAccessible() is no-op since PHP 8.1
2 parents 2f41a5a + ef9e803 commit 17c1070

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/Symfony/Component/PropertyInfo/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)