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

PHP 8.0: Private methods cannot be final as they are never overridden by other classes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.11
    • 3.10.1, 3.11, 4.0
    • General

      PHP 8.0 shows a warning:

      PHP Warning:  Private methods cannot be final as they are never overridden by other classes
      

      See also https://php.watch/versions/8.0/final-private-function#final-private
      there is an exception for final private __construct() and there is one constructor like that in moodle still

            marina Marina Glancy
            marina Marina Glancy
            Amaia Anabitarte Amaia Anabitarte
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            CiBoT CiBoT
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours, 10 minutes
                3h 10m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.