Skip to content

Commit

Permalink
FileUpload: improved phpDoc
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Jan 30, 2024
1 parent 8a4b654 commit 770fb9a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Http/FileUpload.php
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,8 @@ function (string $message) use ($dest): void {


/**
* Returns true if the uploaded file is an image supported by PHP.
* Detection is based on its signature, the integrity of the file is not checked. Requires PHP extension fileinfo.
* Returns true if the uploaded file is an image and the format is supported by PHP, so it can be loaded using the toImage() method.
* Detection is based on its signature, the integrity of the file is not checked. Requires PHP extensions fileinfo & gd.
*/
public function isImage(): bool
{
Expand All @@ -230,7 +230,7 @@ public function isImage(): bool


/**
* Loads an image.
* Converts uploaded image to Nette\Utils\Image object.
* @throws Nette\Utils\ImageException If the upload was not successful or is not a valid image
*/
public function toImage(): Nette\Utils\Image
Expand Down

0 comments on commit 770fb9a

Please sign in to comment.