Explicitly cast the thumbnail dimensions into int
authorAlexander Ebert <ebert@woltlab.com>
Thu, 3 Aug 2023 11:24:21 +0000 (13:24 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 3 Aug 2023 11:24:21 +0000 (13:24 +0200)
commitd0f3304fe7f46c51fa8c2c00f3a3def8285c61f9
tree9cbd2abb5966e6b7889252ac4a8a524dbaf3eac5
parentc6d66dfa6ccdd40924f09ad9bc8f75b254cc9d90
Explicitly cast the thumbnail dimensions into int

The requested dimensions could be a result of a calculation that yields float values. `Imagick::thumbnailImage()` expects integers and will throw in PHP 8.1+ if it cannot safely cast them to int.
wcfsetup/install/files/lib/system/image/adapter/ImagickImageAdapter.class.php