8000 [Form] Add phpdoc to `RequestHandlerInterface::isFileUpload()` method · dunglas/symfony@faf5470 · GitHub
[go: up one dir, main page]

Skip to content

Commit faf5470

Browse files
issei-mnicolas-grekas
authored andcommitted
[Form] Add phpdoc to RequestHandlerInterface::isFileUpload() method
1 parent 4c5d9cf commit faf5470

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