Skip to content

Commit

Permalink
Code checker updates
Browse files Browse the repository at this point in the history
  • Loading branch information
james-cnz committed Jun 9, 2024
1 parent d3f36c3 commit d8f0770
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion classes/global_navigation_wrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ public function load_generic_course_sections(\stdClass $course, \navigation_node
* @return array Array of activity nodes
*/
protected function load_section_activities(\navigation_node $sectionnode, \section_info $section, array $activities,
\stdClass $course = null): array {
?\stdClass $course = null): array {
// CHANGED ABOVE: Use section info instead of number.
global $CFG, $SITE;
// A static counter for JS function naming.
Expand Down
2 changes: 1 addition & 1 deletion lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ public function set_sections_preference(string $preferencename, array $sectionid
* @return array of preferences indexed by section ID
*
*/
protected function fmt_set_get_sections_preferences(string $preferencename = null, array $sectionids = null): array {
protected function fmt_set_get_sections_preferences(?string $preferencename = null, ?array $sectionids = null): array {

$course = $this->get_course();
$sectionsextra = $this->fmt_get_sections_extra();
Expand Down

0 comments on commit d8f0770

Please sign in to comment.