Skip to content

Commit e81c56c

Browse files
committed
Fix print_form_button regression
Issue #35215
1 parent 8c55ea5 commit e81c56c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/print_api.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1474,7 +1474,7 @@ function print_manage_project_sort_link( $p_page, $p_string, $p_field, $p_dir, $
14741474
*
14751475
* @return void
14761476
*/
1477-
function print_form_button( $p_action_page, $p_label, array $p_args_to_post = [], $p_security_token = null, $p_class = '' ) {
1477+
function print_form_button( $p_action_page, $p_label, ?array $p_args_to_post = [], $p_security_token = null, $p_class = '' ) {
14781478
# TODO: ensure all uses of print_button supply arguments via $p_args_to_post (POST)
14791479
# instead of via $p_action_page (GET). Then only add the CSRF form token if
14801480
# arguments are being sent via the POST method.
@@ -2262,7 +2262,7 @@ function print_dropzone_template(){
22622262
* @deprecated 2.0 use {@see print_form_button()} instead
22632263
* @see form_security_token()
22642264
*/
2265-
function print_button( $p_action_page, $p_label, array $p_args_to_post = [], $p_security_token = null ) {
2265+
function print_button( $p_action_page, $p_label, ?array $p_args_to_post = [], $p_security_token = null ) {
22662266
error_parameters( __FUNCTION__, 'print_form_button' );
22672267
trigger_error( ERROR_DEPRECATED_SUPERSEDED, DEPRECATED );
22682268
print_form_button( $p_action_page, $p_label, $p_args_to_post, $p_security_token );

0 commit comments

Comments
 (0)