Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfbf6f56

Browse files
committed
minor#51727 RemovesetAccessible 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.setaccessiblehttps://www.php.net/manual/en/reflectionproperty.setaccessible.phpCommits-------8371c92 Remove setAccessible reflection call in tests
2 parents0d344e1 +8371c92 commitfbf6f56

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)

[8]ページ先頭

©2009-2025 Movatter.jp