original_string: public function getErrorMessage(): string
  	{
  		static $messages = [
  			UPLOAD_ERR_OK         => 'Upload successful',
  			UPLOAD_ERR_INI_SIZE   => 'The size of the file exceeds the value of the "upload_max_filesize" directive in php.ini',
  			UPLOAD_ERR_FORM_SIZE  => 'The size of the file exceeds the value of the "MAX_FILE_SIZE" input in the HTML form',
  			UPLOAD_ERR_PARTIAL    => 'The file was only partially uploaded',
  			UPLOAD_ERR_NO_FILE    => 'No file was uploaded',
  			UPLOAD_ERR_NO_TMP_DIR => 'Temporary directory is missing',
  			UPLOAD_ERR_CANT_WRITE => 'Failed to write the file to disk',
  			UPLOAD_ERR_EXTENSION  => 'A PHP extension stopped the file upload',
  		];
  		
  		return $messages[$this->statusCode];
  	}
code: public function getErrorMessage(): string
  	{
  		static $messages = [
  			UPLOAD_ERR_OK         => 'Upload successful',
  			UPLOAD_ERR_INI_SIZE   => 'The size of the file exceeds the value of the "upload_max_filesize" directive in php.ini',
  			UPLOAD_ERR_FORM_SIZE  => 'The size of the file exceeds the value of the "MAX_FILE_SIZE" input in the HTML form',
  			UPLOAD_ERR_PARTIAL    => 'The file was only partially uploaded',
  			UPLOAD_ERR_NO_FILE    => 'No file was uploaded',
  			UPLOAD_ERR_NO_TMP_DIR => 'Temporary directory is missing',
  			UPLOAD_ERR_CANT_WRITE => 'Failed to write the file to disk',
  			UPLOAD_ERR_EXTENSION  => 'A PHP extension stopped the file upload',
  		];
  		
  		return $messages[$this->statusCode];
  	}
code_tokens: public function getErrorMessage ( ) : string { static $ messages = [ UPLOAD_ERR_OK => 'Upload successful' , UPLOAD_ERR_INI_SIZE => 'The size of the file exceeds the value of the "upload_max_filesize" directive in php.ini' , UPLOAD_ERR_FORM_SIZE => 'The size of the file exceeds the value of the "MAX_FILE_SIZE" input in the HTML form' , UPLOAD_ERR_PARTIAL => 'The file was only partially uploaded' , UPLOAD_ERR_NO_FILE => 'No file was uploaded' , UPLOAD_ERR_NO_TMP_DIR => 'Temporary directory is missing' , UPLOAD_ERR_CANT_WRITE => 'Failed to write the file to disk' , UPLOAD_ERR_EXTENSION => 'A PHP extension stopped the file upload' , ] ; return $ messages [ $ this -> statusCode ] ; }
docstring: Get a human-readable error message of the upload status.
  Do not use this to check the upload status!
  
  @see getErrorCode
  @see getErrorConstant
  @see isValid
  @see http://php.net/manual/en/features.file-upload.errors.php
docstring_tokens: Get a human - readable error message of the upload status . Do not use this to check the upload status!