PHP8: deprecated code

Created on 28 April 2022, over 2 years ago
Updated 7 February 2024, 9 months ago

Problem/Motivation

When upgrading to PHP8, I got this warning:
Declaring a required parameter after an optional one is deprecated since PHP 8.0. Parameter $params is optional, while parameter $headers is required. /google_analytics_reports/google_analytics_reports_api/google_analytics_reports_api.lib.inc on line 269

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

3.0

Component

API module

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.71.5 2024