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

Docblock incorrect types found in installlib.php

XMLWordPrintable

    • MOODLE_311_STABLE, MOODLE_39_STABLE, MOODLE_400_STABLE
    • MOODLE_311_STABLE, MOODLE_400_STABLE
    • MDL-76167-master
    • Hide

      Requirements

      • IDE of choice with docblock code linting on

      Instructions

      1. Using your IDE, open file installlib.php
      2. Locate function called install_print_header
      3. CONFIRM when $config is being used that there are no code linting errors
      4. Locate function called install_print_footer
      5. CONFIRM when $config is being used that there are no code linting errors
      Show
      Requirements IDE of choice with docblock code linting on Instructions Using your IDE, open file installlib.php Locate function called install_print_header CONFIRM when $config is being used that there are no code linting errors Locate function called install_print_footer CONFIRM when $config is being used that there are no code linting errors

      Found a couple of functions with incorrect docblock param type declarations in installlib.php.

      install_print_header and install_print_footer are incorrectly docblocked as arrays. Should be object.

        1. MDL-76167_master_1.png
          MDL-76167_master_1.png
          120 kB
        2. MDL-76167_master_2.png
          MDL-76167_master_2.png
          102 kB
        3. MDL-76167_v311_1.png
          MDL-76167_v311_1.png
          105 kB
        4. MDL-76167_v311_2.png
          MDL-76167_v311_2.png
          84 kB
        5. MDL-76167_v400_1.png
          MDL-76167_v400_1.png
          102 kB
        6. MDL-76167_v400_2.png
          MDL-76167_v400_2.png
          100 kB

            david.woloszyn@moodle.com David Woloszyn
            david.woloszyn@moodle.com David Woloszyn
            Paul Holden Paul Holden
            Huong Nguyen Huong Nguyen
            Angelia Dela Cruz Angelia Dela Cruz
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 58 minutes
                58m

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