xperseguers / t3ext-image_autoresize

TYPO3 Extension image_autoresize. Simplify the way your editors may upload their images.
https://extensions.typo3.org/extension/image_autoresize
GNU General Public License v3.0
16 stars 22 forks source link

[BUGFIX] Prevent Warning caused by invalid enum cast #111

Closed xyng closed 2 months ago

xyng commented 2 months ago

In the BatchResize command, a callback method receiving a $severity variable does not correctly check the type and tries to cast it to an int. However, the value is an enum for Typo3 >= 12 which is not castable to an int.

This PR replaces the typecast with an access to the enums value, which is an int.

Resolves: #108