Skip to content

Required parameter follows optional parameter warnings #31

@thepurpleblob

Description

@thepurpleblob

This is a PHP8 error, but it's probably a good idea to fix anyway.

moodle-mod_hsuforum/lib.php

Lines 2159 to 2160 in 3563bb7

function hsuforum_search_posts($searchterms, $courseid=0, $limitfrom=0, $limitnum=50,
&$totalcount, $extrasql='') {

$totalcount is a required param but follows optional params - which doesn't make much sense.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions