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

CommentFileSizeAuthor
#2 3319614-php-8.1-compatibility-2.patch1.42 KBzarpele

Comments

Zarpele created an issue. See original summary.

zarpele’s picture

StatusFileSize
new1.42 KB
kewesley’s picture

This patch worked for me. Thanks!

nikunjkotecha’s picture

Status: Needs review » Fixed

  • nikunjkotecha committed b5d8e32f on 1.0.x
    Issue #3319614 by Zarpele, kewesley: PHP 8.1 Deprecated: Optional...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.