diff --git a/CHANGELOG.md b/CHANGELOG.md index 20699fe..48981a6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # MuxMate Changelog +## 3.0.1 - 2024-08-22 +### Fixed +- Fixed some minor Craft 5 compatibility issues + ## 3.0.0 - 2024-08-22 ### Added - Added support for Craft 5 diff --git a/composer.json b/composer.json index 478bb80..59e3de9 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "vaersaagod/muxmate", "description": "Mux ado about streaming, mate!", "type": "craft-plugin", - "version": "3.0.0", + "version": "3.0.1", "require": { "php": ">=8.2", "craftcms/cms": "^5.2.0", diff --git a/src/fields/MuxMateField.php b/src/fields/MuxMateField.php index 31a7667..d6de5ad 100644 --- a/src/fields/MuxMateField.php +++ b/src/fields/MuxMateField.php @@ -32,7 +32,7 @@ public static function displayName(): string return Craft::t('_muxmate', 'MuxMate'); } - public static function valueType(): string + public static function phpType(): string { return 'mixed'; } @@ -108,7 +108,7 @@ public function useFieldset(): bool /** * @throws InvalidConfigException */ - public function normalizeValue(mixed $value, ElementInterface $element = null): mixed + public function normalizeValue(mixed $value, ?ElementInterface $element = null): mixed { if ($value instanceof MuxMateFieldAttributes) { return $value; @@ -119,7 +119,7 @@ public function normalizeValue(mixed $value, ElementInterface $element = null): ]); } - protected function inputHtml(mixed $value, ElementInterface $element = null, bool $inline): string + protected function inputHtml(mixed $value, ElementInterface $element = null, bool $inline = false): string { if (!$element instanceof Asset || $element->kind !== Asset::KIND_VIDEO) { $warningTip = new Tip([