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

core_privacy\manager uses scalar type hinting on 3.3 (PHP 5.6)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.3.5
    • Fix Version/s: 3.3.6, 3.4.3
    • Component/s: Privacy
    • Labels:

      Description

      Attempting to run my workshop module unit tests for privacy API on Moodle 3.3, I got:

      Argument 1 passed to core_privacy\manager::plugintype_class_callback() must be an instance of core_privacy\string, string given, called in /home/mudrd8mz/www/mdk/m33/moodle/plagiarism/classes/privacy/provider.php on line 96 and defined
       
      /home/mudrd8mz/www/mdk/m33/moodle/privacy/classes/manager.php:358
      /home/mudrd8mz/www/mdk/m33/moodle/plagiarism/classes/privacy/provider.php:96
      /home/mudrd8mz/www/mdk/m33/moodle/plagiarism/classes/privacy/provider.php:85
      ...
      

      There is a forgotten "string" type hinting that is misinterpreted as a classname in PHP 5.6.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mudrd8mz David Mudrák (@mudrd8mz)
              Reporter:
              mudrd8mz David Mudrák (@mudrd8mz)
              Peer reviewer:
              Juan Leyva
              Integrator:
              Andrew Nicols
              Tester:
              CiBoT
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                17/May/18