Skip to content

Commit

Permalink
Fix some minor compatibility issues w/ Craft 5
Browse files Browse the repository at this point in the history
  • Loading branch information
mmikkel committed Aug 22, 2024
1 parent 92ea0e1 commit c5a38cd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 3 additions & 3 deletions src/fields/MuxMateField.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}
Expand Down Expand Up @@ -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;
Expand All @@ -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([
Expand Down

0 comments on commit c5a38cd

Please sign in to comment.