diff --git a/CHANGELOG.md b/CHANGELOG.md index 39489f296..544e35c83 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,15 @@ Changelog ========= +## 5.1.12 + +Released: 2022-07-11 + +### 🐛 Bug fixes + +- Tiny fix for the |image-filter [#3276](https://github.com/bolt/core/pull/3276) + + ## 5.1.11 Released: 2022-07-05 diff --git a/src/Twig/ContentExtension.php b/src/Twig/ContentExtension.php index d28bb4552..bd957fe07 100644 --- a/src/Twig/ContentExtension.php +++ b/src/Twig/ContentExtension.php @@ -235,7 +235,7 @@ public function getImage(?Content $content, bool $onlyValues = false) return null; } - private function findOneImage(Field $field): ?ImageField + private function findOneImage(Field $field) { if ($field instanceof ImageField && $field->get('filename')) { return $field; diff --git a/src/Version.php b/src/Version.php index 73163a600..8aaeff9f5 100644 --- a/src/Version.php +++ b/src/Version.php @@ -23,7 +23,7 @@ final class Version * Stable — 3.0.0 * Development — 3.1.0 alpha 1 */ - public const VERSION = '5.1.11'; + public const VERSION = '5.1.12'; public const CODENAME = ''; /**