PHP8: deprecated code

Created on 28 April 2022, about 2 years ago
Updated 7 June 2023, about 1 year ago

Problem/Motivation

When upgrading to PHP8, I got this warning:


FILE: path_breadcrumbs/path_breadcrumbs_ui/path_breadcrumbs_ui.module
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 949 | WARNING | Declaring a required parameter after an optional one is deprecated since PHP 8.0. Parameter $buttons is optional, while parameter $form_name is required.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Steps to reproduce

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

Proposed resolution

Update parameters in function declaration.

πŸ“Œ Task
Status

RTBC

Version

3.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.

Production build 0.69.0 2024