drop php7.3 support, make use of 7.4 features

This commit is contained in:
Shish
2021-03-14 23:43:50 +00:00
parent c558ee3bdb
commit 77f7121e26
296 changed files with 1571 additions and 2039 deletions

View File

@@ -5,7 +5,7 @@ class TranscodeVideoTheme extends Themelet
/*
* Display a link to resize an image
*/
public function get_transcode_html(Image $image, array $options)
public function get_transcode_html(Image $image, array $options): string
{
$html = "
".make_form(
@@ -25,7 +25,7 @@ class TranscodeVideoTheme extends Themelet
return $html;
}
public function get_transcode_picker_html(array $options)
public function get_transcode_picker_html(array $options): string
{
$html = "<select id='transcode_format' name='transcode_format' required='required' >";
foreach ($options as $display=>$value) {
@@ -35,7 +35,7 @@ class TranscodeVideoTheme extends Themelet
return $html."</select>";
}
public function display_transcode_error(Page $page, string $title, string $message)
public function display_transcode_error(Page $page, string $title, string $message): void
{
$page->set_title("Transcode Video");
$page->set_heading("Transcode Video");