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

PHPDocs invalid integer values

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.4.1
    • Fix Version/s: None
    • Component/s: PHPDoc
    • Labels:
      None
    • Affected Branches:
      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

            Assignee:
            Unassigned
            Reporter:
            Schlicht Marco Schlicht
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: