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

Cannot use generic "object" with PHP 7

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.0, 3.1
    • 3.0, 3.1
    • Module: Questionnaire
    • 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

            mchurch Mike Churchward
            mchurch Mike Churchward
            Mike Churchward
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              16/Nov/15