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

PHPDocs invalid integer values

XMLWordPrintable

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

      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}
      ]}]}]

            Unassigned Unassigned
            Schlicht Marco Schlicht
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.