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

PHP 8.0: Deprecate required parameters after optional parameters in function/method signatures

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.10.1, 3.11, 4.0
    • 3.11
    • General

    Description

      See https://php.watch/versions/8.0#deprecate-required-param-after-optional

      There are bunch of warnings here and there about optional parameters being declared before required, fixing some of them in bulk.

      Deprecated: Required parameter $content follows optional parameter $level
      

      Attachments

        Activity

          People

            marina Marina Glancy
            marina Marina Glancy
            Peter Dias Peter Dias
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            CiBoT CiBoT
            Adrian Greeve, David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              17/May/21

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 40 minutes
                1h 40m