8000 minor #25040 [Form] Add phpdoc to `RequestHandlerInterface::isFileUpl… · symfony/symfony@f1b7921 · GitHub
[go: up one dir, main page]

Skip to content

Commit f1b7921

Browse files
minor #25040 [Form] Add phpdoc to RequestHandlerInterface::isFileUpload() method (issei-m)
This PR was squashed before being merged into the 2.7 branch (closes #25040). Discussion ---------- [Form] Add phpdoc to `RequestHandlerInterface::isFileUpload()` method | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | no | New feature? | no <!-- don't forget to update src/**/CHANGELOG.md files --> | BC breaks? | no | Deprecations? | no <!-- don't forget to update UPGRADE-*.md files --> | Tests pass? | Not confirmed, but the changes are completely minor | Fixed tickets | - | License | MIT | Doc PR | - <!-- - Bug fixes must be submitted against the lowest branch where they apply (lowest branches are regularly merged to upper ones so they get the fixes too). - Features and deprecations must be submitted against the master branch. - Please fill in this template according to the PR you're about to submit. - Replace this comment by a description of what your PR is solving. --> Commits ------- faf5470 [Form] Add phpdoc to `RequestHandlerInterface::isFileUpload()` method
2 parents 4c5d9cf + faf5470 commit f1b7921

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

src/Symfony/Component/Form/Extension/HttpFoundation/HttpFoundationRequestHandler.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@ public function handleRequest(FormInterface $form, $request = null)
108108
$form->submit($data, 'PATCH' !== $method);
109109
}
110110

111+
/**
112+
* {@inheritdoc}
113+
*/
111114
public function isFileUpload($data)
112115
{
113116
return $data instanceof File;

src/Symfony/Component/Form/NativeRequestHandler.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@ public function handleRequest(FormInterface $form, $request = null)
118118
$form->submit($data, 'PATCH' !== $method);
119119
}
120120

121+
/**
122+
* {@inheritdoc}
123+
*/
121124
public function isFileUpload($data)
122125
{
123126
// POST data will always be strings or arrays of strings. Thus, we can be sure

src/Symfony/Component/Form/RequestHandlerInterface.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ interface RequestHandlerInterface
2727
public function handleRequest(FormInterface $form, $request = null);
2828

2929
/**
30-
* @param mixed $data
30+
* Returns true if the given data is a file upload.
31+
*
32+
* @param mixed $data The form field data
3133
*
3234
* @return bool
3335
*/

0 commit comments

Comments
 (0)
0