From 770fb9a52ca622503c3e3c33cc295972ad754334 Mon Sep 17 00:00:00 2001 From: David Grudl Date: Tue, 30 Jan 2024 14:07:24 +0100 Subject: [PATCH] FileUpload: improved phpDoc --- src/Http/FileUpload.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Http/FileUpload.php b/src/Http/FileUpload.php index 08a29285..52982b6c 100644 --- a/src/Http/FileUpload.php +++ b/src/Http/FileUpload.php @@ -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 { @@ -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