diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-01-17 11:40:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-17 11:40:35 +0100 |
commit | 9222dcd9401717cf9335af5f5bc0ef3bf8f0b713 (patch) | |
tree | 72f4a35a79c078b5e9a51d2d2622e8ae7a0abec4 /lib/public | |
parent | 6e95bd7a518f587836124e7cb3a3762fb4a62e8c (diff) | |
parent | e4b3ee8d8f93262423eaaeee390deb6e680bb1e3 (diff) | |
download | nextcloud-server-9222dcd9401717cf9335af5f5bc0ef3bf8f0b713.tar.gz nextcloud-server-9222dcd9401717cf9335af5f5bc0ef3bf8f0b713.zip |
Merge pull request #7836 from nextcloud/image-type-hinting
Fix float/integer handling in image API
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/IImage.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/public/IImage.php b/lib/public/IImage.php index 70e8b3cff75..4311f44f1bc 100644 --- a/lib/public/IImage.php +++ b/lib/public/IImage.php @@ -147,7 +147,7 @@ interface IImage { * @return bool * @since 8.1.0 */ - public function preciseResize($width, $height); + public function preciseResize(int $width, int $height): bool; /** * Crops the image to the middle square. If the image is already square it just returns. @@ -168,7 +168,7 @@ interface IImage { * @return bool for success or failure * @since 8.1.0 */ - public function crop($x, $y, $w, $h); + public function crop(int $x, int $y, int $w, int $h): bool; /** * Resizes the image to fit within a boundary while preserving ratio. |