Skip to content

Commit

Permalink
Fix PHP 8 warning in function mci_issue_set_custom_fields
Browse files Browse the repository at this point in the history
Declaring a required parameter after an optional one is deprecated in
PHP 8.

Fixes #27465
  • Loading branch information
atrol committed Nov 8, 2020
1 parent 928875f commit 1ad41fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/soap/mc_issue_api.php
Expand Up @@ -388,7 +388,7 @@ function mci_issue_get_due_date( BugData $p_bug ) {
* @param boolean $p_log_insert Create history logs for new values.
* @return boolean|SoapFault|RestFault true for success, otherwise fault.
*/
function mci_issue_set_custom_fields( $p_issue_id, array &$p_custom_fields = null, $p_log_insert ) {
function mci_issue_set_custom_fields( $p_issue_id, array &$p_custom_fields = null, $p_log_insert = true ) {
# set custom field values on the submitted issue
if( isset( $p_custom_fields ) && is_array( $p_custom_fields ) ) {
foreach( $p_custom_fields as $t_custom_field ) {
Expand Down

0 comments on commit 1ad41fd

Please sign in to comment.