RSS Feed/News Incomplete return type hint for \XF\Http\Request::getFile

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
34,524
Points
823

Reputation:

PHP:

Code:
/**
 * @param string $key
 * @param bool $multiple If true, returns an array of uploads for this key
 * @param bool $skipErrors If true, uploads with errors will not be returned
 *
 * @return Upload|Upload[]
 */
public function getFile($key, $multiple = false, $skipErrors = true)
{
    if (!$this->fileExists($key))
    {
        return ($multiple ? [] : null);
    }

[...]

$output = [];

[...]

if ($multiple)
    {
        return $output;
    }
    else
    {...

Read more

Continue reading...
 
Status
Not open for further replies.
Top