drop php7.3 support, make use of 7.4 features

This commit is contained in:
Shish
2021-03-14 23:43:50 +00:00
parent c558ee3bdb
commit 77f7121e26
296 changed files with 1571 additions and 2039 deletions

View File

@@ -2,21 +2,23 @@
class _SafeImage
{
public $id;
public $height;
public $width;
public $hash;
public $filesize;
public $ext;
public $mime;
public $posted;
public $source;
public $owner_id;
public $tags;
public int $id;
public int $height;
public int $width;
public string $hash;
public int $filesize;
public string $ext;
public ?string $mime;
public int $posted;
public ?string $source;
public int $owner_id;
public array $tags;
public function __construct(Image $img)
{
$this->id = $img->id;
$_id = $img->id;
assert($_id != null);
$this->id = $_id;
$this->height = $img->height;
$this->width = $img->width;
$this->hash = $img->hash;