clarify some nullables

This commit is contained in:
Shish 2021-09-25 13:40:41 +01:00
parent e7808096ff
commit 3f0a8399d1
2 changed files with 3 additions and 3 deletions

View file

@ -22,7 +22,7 @@ class Image
private string $ext;
private string $mime;
/** @var string[]|null */
/** @var ?string[] */
public ?array $tag_array;
public int $owner_id;
public string $owner_ip;

View file

@ -631,7 +631,7 @@ class Media extends Extension
* @param int $new_width
* @param int $new_height
* @param string $output_filename
* @param string|null $output_mime If set to null, the output file type will be automatically determined via the $info parameter. Otherwise an exception will be thrown.
* @param ?string $output_mime If set to null, the output file type will be automatically determined via the $info parameter. Otherwise an exception will be thrown.
* @param int $output_quality Defaults to 80.
* @throws MediaException
* @throws InsufficientMemoryException if the estimated memory usage exceeds the memory limit.
@ -642,7 +642,7 @@ class Media extends Extension
int $new_width,
int $new_height,
string $output_filename,
string $output_mime = null,
?string $output_mime = null,
string $alpha_color = Media::DEFAULT_ALPHA_CONVERSION_COLOR,
string $resize_type = self::RESIZE_TYPE_FIT,
int $output_quality = 80,