Skip to content

Commit

Permalink
Fixed nullable implicit parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
santoshndev committed Nov 6, 2024
1 parent d4e16e6 commit 64d3142
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/frontend.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ protected function get_javascript_strings() {
* @param \section_info $section Section currently being edited (null if none)
* @return array Array of parameters for the JavaScript function
*/
protected function get_javascript_init_params($course, \cm_info $cm = null, \section_info $section = null) {
protected function get_javascript_init_params($course, ?\cm_info $cm = null, ?\section_info $section = null) {
global $OUTPUT;
$html = $OUTPUT->render_from_template('availability_dedicationtime/dedication', []);
return [$html];
Expand Down

0 comments on commit 64d3142

Please sign in to comment.