PHP 8.1: Optional parameter $filters declared before required parameter

Created on 1 February 2023, almost 2 years ago

Problem/Motivation

When clearing the cache on a PHP 8.1 site, I get the following errors:

Deprecated: Optional parameter $filters declared before required parameter $promoted_only is implicitly treated as a required parameter in sites/all/modules/quotes/quotes.module on line 1812

Deprecated: Optional parameter $filters declared before required parameter $query is implicitly treated as a required parameter in sites/all/modules/quotes/quotes.module on line 1861

Deprecated: Optional parameter $filters declared before required parameter $query is implicitly treated as a required parameter in sites/all/modules/quotes/quotes.module on line 1886

Steps to reproduce

I have the latest 7.x dev release installed.

When I switch Apache from PHP 7.4 to 8.1, I then clear my cache and that's when the errors appear.

πŸ› Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States hargobind Austin, Texas

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

Comments & Activities

Production build 0.71.5 2024