8000 minor #51727 Remove `setAccessible` reflection call in tests (alamira… · symfony/symfony@fbf6f56 · GitHub
[go: up one dir, main page]

Skip to content

Commit fbf6f56

Browse files
committed
minor #51727 Remove setAccessible reflection call in tests (alamirault)
This PR was merged into the 6.4 branch. Discussion ---------- Remove `setAccessible` reflection call in tests | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | no | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tickets | Fix #... <!-- prefix each issue number with "Fix #", no need to create an issue if none exists, explain below instead --> | License | MIT | Doc PR | symfony/symfony-docs#... <!-- required for new features --> I checked all codebase, and found only this occurence when php >8.1 is required > Note: As of PHP 8.1.0, calling this method has no effect; all methods are invokable by default. https://www.php.net/manual/en/reflectionmethod.setaccessible https://www.php.net/manual/en/reflectionproperty.setaccessible.php Commits ------- 8371c92 Remove setAccessible reflection call in tests
2 parents 0d344e1 + 8371c92 commit fbf6f56

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/Symfony/Bridge/PsrHttpMessage/Tests/Factory/HttpFoundationFactoryTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,6 @@ private function callCreateUploadedFile(UploadedFileInterface $uploadedFile): Ht
208208
{
209209
$reflection = new \ReflectionClass($this->factory);
210210
$createUploadedFile = $reflection->getMethod('createUploadedFile');
211-
$createUploadedFile->setAccessible(true);
212211

213212
return $createUploadedFile->invokeArgs($this->factory, [$uploadedFile]);
214213
}

0 commit comments

Comments
 (0)
0