PHP 8.2 deprecated problem

Created on 11 May 2023, over 1 year ago
Updated 16 August 2024, 3 months ago

Problem/Motivation

When upgrading to PHP 8.2 I get the error
Deprecated function: Creation of dynamic property flag_node::$weight is deprecated in flag_flag->construct() (line 223 of /home/nginx/www/miami/sites/all/modules/contrib/flag/includes/flag/flag_flag.inc).
Deprecated function: Creation of dynamic property flag_node::$show_as_field is deprecated in flag_flag->construct() (line 223 of /home/nginx/www/miami/sites/all/modules/contrib/flag/includes/flag/flag_flag.inc).
etc..

Steps to reproduce

Just have flag installed and on nodes it give this error on every node displayed

Proposed resolution

Change code?

πŸ› Bug report
Status

RTBC

Version

3.0

Component

Flag core

Created by

πŸ‡ΊπŸ‡ΈUnited States erald

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

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

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024