mirror of
https://github.com/Karaka-Management/oms-Media.git
synced 2026-02-17 17:58:40 +00:00
fix phpstan
This commit is contained in:
parent
506b24a14e
commit
3177d6a4dc
|
|
@ -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 ;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user