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

Correct return type documentation for assign::get_grade_item()

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 3.0.6, 3.1.2
    • 3.0.7, 3.1.3
    • Assignment, Documentation

    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

            maherne Michael Aherne
            maherne Michael Aherne
            Ankit Agarwal Ankit Agarwal
            Andrew Lyons Andrew Lyons
            Andrew Lyons Andrew Lyons
            Adrian Greeve, Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie, David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              14/Nov/16