[Form] Add phpdoc to `RequestHandlerInterface::isFileUpload()` method

This commit is contained in:
Issei.M 2017-11-20 13:43:41 +09:00 committed by Nicolas Grekas
parent 4c5d9cf06b
commit faf5470fd5
3 changed files with 9 additions and 1 deletions

View File

@ -108,6 +108,9 @@ class HttpFoundationRequestHandler implements RequestHandlerInterface
$form->submit($data, 'PATCH' !== $method);
}
/**
* {@inheritdoc}
*/
public function isFileUpload($data)
{
return $data instanceof File;

View File

@ -118,6 +118,9 @@ class NativeRequestHandler implements RequestHandlerInterface
$form->submit($data, 'PATCH' !== $method);
}
/**
* {@inheritdoc}
*/
public function isFileUpload($data)
{
// POST data will always be strings or arrays of strings. Thus, we can be sure

View File

@ -27,7 +27,9 @@ interface RequestHandlerInterface
public function handleRequest(FormInterface $form, $request = null);
/**
* @param mixed $data
* Returns true if the given data is a file upload.
*
* @param mixed $data The form field data
*
* @return bool
*/