PHP8: deprecated code

Created on 25 December 2021, almost 3 years ago
Updated 30 March 2023, over 1 year ago

Problem/Motivation

When upgrading to PHP8, I got this warning:
PHP Deprecated: Required parameter $complete_form follows optional parameter $item in /var/www/html/htdocs/sites/all/modules/contrib/menu_attributes/menu_attributes.module on line 171

Steps to reproduce

Upgrade server to PHP8, then run a drush command and see warning.

Proposed resolution

Switch parameters in function declaration and usage.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada OwilliwO Montreal

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024