Skip to content

Commit

Permalink
Amend PHP 8.1 Unknown error type: floor() fixes #59.
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaboesch authored and mudrd8mz committed Feb 9, 2023
1 parent a0aadfd commit c4cdc0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion view.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
echo $OUTPUT->render_from_template('mod_subcourse/subcourseinfo', [
'haspercentage' => ($percentage !== null),
'hasstrgrade' => ($strgrade !== null),
'percentage' => floor($percentage),
'percentage' => floor((float)$percentage),
'strgrade' => $strgrade,
]);

Expand Down

0 comments on commit c4cdc0f

Please sign in to comment.