Address dynamic class property deprecation warnings

This commit is contained in:
Aaron committed 2022-12-25 13:56:42 +01:00
1 parent 49390c372d
commit 7897172256
17 files changed
+54 -8

No files matched your search

+2 -1
View File
@@ -13,6 +13,7 @@ class Asset
protected $subdir;
protected $filename;
protected $title;
protected $slug;
protected $mimetype;
protected $image_width;
protected $image_height;
@@ -364,7 +365,7 @@ class Asset
public function isImage()
{
return substr($this->mimetype, 0, 5) === 'image';
return isset($this->mimetype) && substr($this->mimetype, 0, 5) === 'image';
}
public function getImage()