- if (!in_array($ext, ['jpeg', 'jpg', 'gif', 'png'])) {
- $this->logger->log('debug', 'Processed image with not allowed extension. Skipping '.$imagePath);
+ if (!in_array($ext, ['jpeg', 'jpg', 'gif', 'png'], true)) {
+ $this->logger->log('error', 'Processed image with not allowed extension. Skipping '.$imagePath);