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

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.3.5
    • 3.3.6, 3.4.3
    • Privacy

    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

              mudrd8mz David Mudrák (@mudrd8mz)
              mudrd8mz David Mudrák (@mudrd8mz)
              Juan Leyva Juan Leyva
              Andrew Lyons Andrew Lyons
              CiBoT CiBoT
              Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                17/May/18