10000 Remove `setAccessible` reflection call in tests by alamirault · Pull Request #51727 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

Remove setAccessible reflection call in tests #51727

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Remove setAccessible reflection call in tests
  • Loading branch information
alamirault committed Sep 23, 2023
commit 8371c92100416422f720ee42f12516cfa54cf7f2
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,6 @@ private function callCreateUploadedFile(UploadedFileInterface $uploadedFile): Ht
{
$reflection = new \ReflectionClass($this->factory);
$createUploadedFile = $reflection->getMethod('createUploadedFile');
$createUploadedFile->setAccessible(true);

return $createUploadedFile->invokeArgs($this->factory, [$uploadedFile]);
}
Expand Down
0