fix phpstan

This commit is contained in:
Dennis Eichhorn 2020-12-05 20:11:04 +01:00
parent 506b24a14e
commit 3177d6a4dc
2 changed files with 4 additions and 2 deletions

View File

@ -115,7 +115,9 @@ class Collection extends Media implements \Iterator
*/ */
public function current() : Media public function current() : Media
{ {
return \current($this->sources); $current = \current($this->sources);
return $current === false ? $this : $current ;
} }
/** /**

View File

@ -290,7 +290,7 @@ class UploadFile
return; return;
} }
\imageinterlace($img, $this->isInterlaced ? 1 : 0); \imageinterlace($img, $this->isInterlaced);
if ($extension === 'png') { if ($extension === 'png') {
\imagepng($img, $path); \imagepng($img, $path);