From e4787cccb3aba56c5b4d86a122305c8f661c1536 Mon Sep 17 00:00:00 2001 From: campbell-m <87438215+campbell-m@users.noreply.github.com> Date: Fri, 5 Jul 2024 19:02:38 +0100 Subject: [PATCH] Add type declarations --- web/view_entry.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/view_entry.php b/web/view_entry.php index c397713f79..7f15afe8f5 100644 --- a/web/view_entry.php +++ b/web/view_entry.php @@ -130,7 +130,7 @@ function get_returl(?string $previous_page=null) : string } -function generate_cancel_registration_button(array $row, array $registrant, $label_text, $previous_page=null, $as_field=false) +function generate_cancel_registration_button(array $row, array $registrant, string $label_text, ?string $previous_page=null, bool $as_field=false) : void { global $area, $room; @@ -362,7 +362,7 @@ function generate_event_registration($row, $previous_page=null) // // Optional parameters // button_attributes An array of attributes to be used for the button. -function generate_button(array $params, array $button_attributes=array()) +function generate_button(array $params, array $button_attributes=array()) : void { // Note that until IE supports the form attribute on the button tag, we can't // use a