From 3d5cd7536b6ab348d760f65b5a7c936e77f4d2ed Mon Sep 17 00:00:00 2001 From: Mats Mikkel Rummelhoff Date: Wed, 21 Jun 2023 20:39:08 +0200 Subject: [PATCH] Fix typing error. Bump to 1.1.1 --- CHANGELOG.md | 4 ++++ composer.json | 2 +- src/helpers/MuxMateHelper.php | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f8d46b0..0099012 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # MuxMate Changelog +## 1.1.1 - 2023-06-21 +### Added +- Fixed a PHP exception due to a typing error + ## 1.1.0 - 2023-06-21 ### Added - Added the `isMuxVideo()` and `isMuxVideoReady()` asset methods. diff --git a/composer.json b/composer.json index da58bae..e95908b 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "vaersaagod/muxmate", "description": "Mux ado about streaming, mate!", "type": "craft-plugin", - "version": "1.1.0", + "version": "1.1.1", "require": { "php": ">=8.1", "craftcms/cms": "^4.4.0", diff --git a/src/helpers/MuxMateHelper.php b/src/helpers/MuxMateHelper.php index 006e67c..7f51709 100644 --- a/src/helpers/MuxMateHelper.php +++ b/src/helpers/MuxMateHelper.php @@ -192,7 +192,7 @@ public static function getMuxMateFieldAttributes(?Asset $asset): ?MuxMateFieldAt { $muxMateFieldHandle = static::_getMuxMateFieldForAsset($asset)?->handle; if (!$muxMateFieldHandle) { - return false; + return null; } /** @var MuxMateFieldAttributes|null $muxMateFieldAttributes */