Skip to content

Commit

Permalink
Merge branch 'fix' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
k-holy committed Apr 26, 2023
2 parents ae0bd68 + da7e959 commit 74cff12
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/File/NativeFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ public function isImage(): bool
public function getImageInfo(): mixed
{
if (is_file($this->path)) {
return @getimagesize($this->path);
return getimagesize($this->path);
}
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion src/File/Psr7UploadedFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public function isImage(): bool
public function getImageInfo(): mixed
{
if ($this->isValid()) {
return @getimagesizefromstring($this->getBuffer());
return getimagesizefromstring($this->getBuffer());
}
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion src/File/SplFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ public function isImage(): bool
public function getImageInfo(): mixed
{
if ($this->file->isFile()) {
return @getimagesize($this->file->getPathname());
return getimagesize($this->file->getPathname());
}
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion src/File/SymfonyFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public function isImage(): bool
public function getImageInfo(): mixed
{
if ($this->file->isFile()) {
return @getimagesize($this->file->getPathname());
return getimagesize($this->file->getPathname());
}
return false;
}
Expand Down

0 comments on commit 74cff12

Please sign in to comment.