Deprecation: Required parameter $form_state follows optional parameter $input

Created on 26 August 2022, almost 2 years ago
Updated 16 October 2023, 9 months ago

Problem/Motivation

Deprecated: Required parameter $form_state follows optional parameter $input in /code/sites/all/modules/viewreference/viewreference.module on line 314

Steps to reproduce

Core 7.91, View Reference 7.x-3.5

Upgraded to PHP 8.0 and started receiving the deprecation notice.

Proposed resolution

Following this PHP Watch recommendation, make a patch that removes the value from the optional parameter on line 314.

Remaining tasks

Review and test the patch.

πŸ“Œ Task
Status

RTBC

Version

3.5

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States morganlyndel

Live updates comments and jobs are added and updated live.
  • PHP 8.0

    The issue particularly affects sites running on PHP version 8.0.0 or later.

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