Skip to content

Commit

Permalink
fix: adding missing abstract methods for urgency question type
Browse files Browse the repository at this point in the history
  • Loading branch information
ccailly committed Apr 23, 2024
1 parent 4dcdd47 commit 5baef45
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/Form/QuestionType/QuestionTypeUrgency.php
Expand Up @@ -47,6 +47,12 @@ public function __construct()
{
}

#[Override]
public static function loadJavascriptFiles(): array
{
return [];
}

#[Override]
public static function formatDefaultValueForDB(mixed $value): ?string
{
Expand All @@ -59,6 +65,12 @@ public static function validateExtraDataInput(array $input): bool
return empty($input); // No extra data for this question type
}

#[Override]
public static function prepareExtraData(array $input): array
{
return $input; // No need to prepare the extra data
}

/**
* Retrieve the default value for the urgency question type
*
Expand Down

0 comments on commit 5baef45

Please sign in to comment.