Skip to content

Commit

Permalink
MDL-81085 tool_xmldb: Fix PHP 8.2 deprecated warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sammarshallou committed Feb 28, 2024
1 parent b0cd9ca commit 13858cf
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,11 @@ function invoke() {
$comment = trim($comment);

$type = required_param('type', PARAM_INT);
$length = strtolower(optional_param('length', NULL, PARAM_ALPHANUM));
$length = strtolower(optional_param('length', '', PARAM_ALPHANUM));
$decimals = optional_param('decimals', NULL, PARAM_INT);
$notnull = optional_param('notnull', false, PARAM_BOOL);
$sequence = optional_param('sequence', false, PARAM_BOOL);
$default = optional_param('default', NULL, PARAM_PATH);
$default = optional_param('default', '', PARAM_PATH);
$default = trim($default);

$editeddir = $XMLDB->editeddirs[$dirpath];
Expand Down Expand Up @@ -272,4 +272,3 @@ function invoke() {
return $result;
}
}

0 comments on commit 13858cf

Please sign in to comment.