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

PHPDocs invalid integer values

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Won't Do
    • 3.4.1
    • None
    • PHPDoc
    • MOODLE_34_STABLE

    Description

      The generated phpdocs contains some wrong documentation in the function core_course_get_contents.

      The documentation says in the response that the keys modules[0]->contents[0]->timecreated and modules[0]->contents[0]->userid is not optional and an integer. But when I call it (sometimes) returns a null value on these two keys which is an invalid value for an integer.

      Example response:
      [{..., "modules":[{..., "contents":[
      {"type":"file", ..., "timecreated":null, "timemodified":1525700516, "userid":null, "author":null, "license":null}
      ]}]}]

      Attachments

        Activity

          People

            Unassigned Unassigned
            Schlicht Marco Schlicht
            David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: