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

Name "numeric" that is reserved for future use

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.2
    • Fix Version/s: 3.3
    • Component/s: Module: Questionnaire
    • Labels:
      None

      Description

      From Github issue #75:

      While running https://github.com/sstalle/php7cc - spotted this:

      {{File: mod/questionnaire/classes/question/numeric.php > Line 28: Name "numeric" that is reserved for future use (does not cause an error in PHP 7) used as a class, interface or trait name class numeric extends \mod_questionnaire\question\base { } }}

      As the error says, it won't cause an error, but if you want to future proof your code, you will need to rename the class. Cheers!

        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:
                15/May/17