Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-6272

Cannot use generic "object" with PHP 7

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0, 3.1
    • Fix Version/s: 3.0, 3.1
    • Component/s: Module: Questionnaire
    • Labels:
      None

      Description

      It looks like the use of "new object" has been deprecated in Moodle as of version 3.1. More importantly, this is due to PHP7 using it as a "reserved word" so using it may break code in PHP7. Questionnaire uses it a few places, so replace those with "new stdClass()".
      (see MDL-52471).

        Attachments

          Activity

            People

            Assignee:
            mchurch Mike Churchward
            Reporter:
            mchurch Mike Churchward
            Participants:
            Component watchers:
            Mike Churchward
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              16/Nov/15