diff --git a/CHANGELOG.md b/CHANGELOG.md index da3519c..ca23f34 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Retcon Changelog +## 2.8.1 - 2024-07-03 +### Fixed +- Fixed a PHP 7 compatibility issue introduced in Retcon 2.8.0, affecting Craft 3 installs using the `retconSrcset` or `retconTransform` filters. [#69](https://github.com/mmikkel/Retcon-Craft/issues/69) + ## 2.8.0 - 2024-06-28 ### Improved - Improves support for Imager X named transforms for the `retconSrcset` filter. [#69](https://github.com/mmikkel/Retcon-Craft/issues/69) diff --git a/composer.json b/composer.json index a599655..b56fa41 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "mmikkel/retcon", "description": "Powerful Twig filters for mutating and querying HTML", "type": "craft-plugin", - "version": "2.8.0", + "version": "2.8.1", "keywords": [ "craft", "cms", diff --git a/src/helpers/RetconHelper.php b/src/helpers/RetconHelper.php index 887efd0..bdaa127 100644 --- a/src/helpers/RetconHelper.php +++ b/src/helpers/RetconHelper.php @@ -10,11 +10,10 @@ use aelvan\imager\Imager; -use mmikkel\retcon\models\RetconTransformedImage; - use spacecatninja\imagerx\ImagerX; use mmikkel\retcon\models\RetconSettings; +use mmikkel\retcon\models\RetconTransformedImage; use mmikkel\retcon\Retcon; use Craft; @@ -28,7 +27,6 @@ use craft\helpers\StringHelper; use craft\helpers\Template as TemplateHelper; use craft\helpers\UrlHelper; - use craft\redactor\FieldData as RedactorFieldData; use craft\htmlfield\HtmlFieldData; @@ -140,7 +138,7 @@ public static function getImageTransform($transform) * @throws \craft\errors\ImageException * @throws \spacecatninja\imagerx\exceptions\ImagerException */ - public static function getTransformedImage(string $src, $transform, ?array $imagerTransformDefaults = null, ?array $imagerConfigOverrides = null): RetconTransformedImage|array|null + public static function getTransformedImage(string $src, $transform, ?array $imagerTransformDefaults = null, ?array $imagerConfigOverrides = null) { // TODO: In Retcon 3.0, we should try to get the asset via RetconHelper::getAssetFromRef(), and transform that directly