From 3f3f63f411ec4c1585b7e7df516b4ca15ac27173 Mon Sep 17 00:00:00 2001 From: Matias Griese Date: Wed, 25 Aug 2021 18:50:08 +0300 Subject: [PATCH] Fixed Flex object types not implementing `MediaInterface` --- CHANGELOG.md | 1 + system/src/Grav/Common/Flex/FlexObject.php | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9e71f377a..71f28f179 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ * Fixed form validation for numeric values in PHP 8 * Fixed `flex-options@` in blueprints duplicating items in array * Fixed wrong form issue with flex objects after cache clear + * Fixed Flex object types not implementing `MediaInterface` # v1.7.18 ## 07/19/2021 diff --git a/system/src/Grav/Common/Flex/FlexObject.php b/system/src/Grav/Common/Flex/FlexObject.php index 2a43eaa44..66e5412aa 100644 --- a/system/src/Grav/Common/Flex/FlexObject.php +++ b/system/src/Grav/Common/Flex/FlexObject.php @@ -13,6 +13,7 @@ namespace Grav\Common\Flex; use Grav\Common\Flex\Traits\FlexGravTrait; use Grav\Common\Flex\Traits\FlexObjectTrait; +use Grav\Common\Media\Interfaces\MediaInterface; use Grav\Framework\Flex\Traits\FlexMediaTrait; use function is_array; @@ -21,7 +22,7 @@ use function is_array; * * @package Grav\Common\Flex */ -abstract class FlexObject extends \Grav\Framework\Flex\FlexObject +abstract class FlexObject extends \Grav\Framework\Flex\FlexObject implements MediaInterface { use FlexGravTrait; use FlexObjectTrait;