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

PHPDocs invalid integer values

    XMLWordPrintable

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.4.1
    • None
    • PHPDoc
    • None
    • 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
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: