Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-56755

Correct return type documentation for assign::get_grade_item()

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 3.0.6, 3.1.2
    • Fix Version/s: 3.0.7, 3.1.3
    • Component/s: Assignment, Documentation
    • Labels:

      Description

      The assign::get_grade_item() method returns a grade_item object, but the PHPDoc says it is of type stdClass. It would be better if the more specific class could be used so that IDEs will be able to do code hinting on variables returned from the method.

        Attachments

          Activity

            People

            • Assignee:
              maherne Michael Aherne
              Reporter:
              maherne Michael Aherne
              Peer reviewer:
              Ankit Agarwal
              Integrator:
              Andrew Nicols
              Tester:
              Andrew Nicols
              Participants:
              Component watchers:
              Damyon Wiese, Adrian Greeve, Mihail Geshoski, Peter Dias, David Mudrák (@mudrd8mz), Helen Foster
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                14/Nov/16