PHP8: deprecated code

Created on 29 April 2022, over 2 years ago
Updated 17 January 2023, almost 2 years ago

Problem/Motivation

When upgrading to PHP8, I got this warning:


FILE: /taxonomy_manager/taxonomy_manager.admin.inc
------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------------------
 864 | WARNING | Declaring a required parameter after an optional one is deprecated since PHP 8.0. Parameter $tid is optional, while parameter $vid1 is required.
------------------------------------------------------------------------------------------------------------------------------------------------------------------

Steps to reproduce

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

Proposed resolution

Update parameters in function declaration.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine shkiper

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.

No activities found.

Production build 0.71.5 2024