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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 3.3.6, 3.4.3
    • 3.3.5
    • Privacy

      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.

            mudrd8mz David Mudrák (@mudrd8mz)
            mudrd8mz David Mudrák (@mudrd8mz)
            Juan Leyva Juan Leyva
            Andrew Lyons Andrew Lyons
            CiBoT CiBoT
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

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