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

Invalid @return declaration of core_component::normalize_component()

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1.3
    • Fix Version/s: 3.1.4
    • Component/s: Documentation
    • Labels:

      Description

      The docblock declares the return value of core_component::normalize_component() as

      @return array as (string)$type => (string)$plugin
      

      which is not correct as it suggest the plugin type is the key of the returned single item array. Instead, a list of two items numerically indexed is returned.

        Attachments

          Activity

            People

            Assignee:
            mudrd8mz David Mudrák (@mudrd8mz)
            Reporter:
            mudrd8mz David Mudrák (@mudrd8mz)
            Integrator:
            Dan Poltawski
            Tester:
            CiBoT
            Participants:
            Component watchers:
            David Mudrák (@mudrd8mz), Helen Foster
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              9/Jan/17