Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. UploadedFile.php

function UploadedFile::setError

Throws

InvalidArgumentException

1 call to UploadedFile::setError()
UploadedFile::__construct in vendor/guzzlehttp/psr7/src/UploadedFile.php

File

vendor/guzzlehttp/psr7/src/UploadedFile.php, line 105

Class

UploadedFile

Namespace

GuzzleHttp\Psr7

Code

private function setError(int $error) : void {
    if (false === in_array($error, UploadedFile::ERRORS, true)) {
        throw new InvalidArgumentException('Invalid error status for UploadedFile');
    }
    $this->error = $error;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal