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

Incorrect PHPDoc variable declaration

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.8.3, 3.8.4, 3.9, 3.9.1
    • Fix Version/s: 3.8.5, 3.9.2
    • Component/s: Administration
    • Labels:

      Description

      $req_capability in lib/adminlib.php should be declared as an array rather than a string

      /** @var string The role capability/permission a user must have to access this external page. */
      public $req_capability;

      Should be:

      /** @var array The role capabilities/permissions a user must have to access this external page. */
      public $req_capability;

        Attachments

          Activity

            People

            Assignee:
            lameze Simey Lameze
            Reporter:
            sharpchi Mark Sharp
            Peer reviewer:
            Shamim Rezaie
            Integrator:
            Víctor Déniz Falcón
            Tester:
            CiBoT
            Participants:
            Component watchers:
            Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              14/Sep/20

                Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 37 minutes
                1h 37m