Commit e85be9f6 authored by chr.fritsch's avatar chr.fritsch Committed by chr.fritsch

Issue #3043246 by chr.fritsch: PHP 7.3 warning

parent ca301264
......@@ -120,17 +120,17 @@ class UploadHandler implements UploadHandlerInterface {
case UPLOAD_ERR_INI_SIZE:
case UPLOAD_ERR_FORM_SIZE:
$message = $this->t('The file could not be saved because it exceeds the maximum allowed size for uploads.');
continue;
break;
case UPLOAD_ERR_PARTIAL:
case UPLOAD_ERR_NO_FILE:
$message = $this->t('The file could not be saved because the upload did not complete.');
continue;
break;
// Unknown error.
default:
$message = $this->t('The file could not be saved. An unknown error has occurred.');
continue;
break;
}
throw new UploadException(UploadException::FILE_UPLOAD_ERROR, $message);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment