PHP 8.1 Deprecated: Optional parameter $options declared before required parameter $time is implicitly treated as a required parameter

Created on 8 November 2022, about 2 years ago
Updated 24 August 2024, 3 months ago

Problem/Motivation

When updating to PHP 8.1 this message appear.

Deprecated: Optional parameter $options declared before required parameter $time is implicitly treated as a required parameter in /var/www/html/web/modules/contrib/cookie_samesite_support/src/Session/CookieSameSiteSupportSessionConfiguration.php on line 29

Steps to reproduce

Just improve the php version to 8.1

Proposed resolution

As the suggestion says, move the optional parameter to the end of the constructor...

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇦🇷Argentina Zarpele

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

    The issue particularly affects sites running on PHP version 8.1.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.71.5 2024