Fix Deprecated function: Creation of dynamic property in ViewsAddButtonService line 58 under PHP 8.2+

Created on 15 April 2025, about 1 month ago

Problem/Motivation

The creation of dynamic properties is deprecated in PHP 8.2

Steps to reproduce

Deprecated function: Creation of dynamic property Drupal\views_add_button\Service\ViewsAddButtonService::$bundle_info is deprecated in Drupal\views_add_button\Service\ViewsAddButtonService->__construct() (line 58 of modules/contrib/views_add_button/src/Service/ViewsAddButtonService.php).

Proposed resolution

Add the protected properties in ViewsAddButtonService.php

🐛 Bug report
Status

Active

Version

2.0

Component

Code: General

Created by

🇵🇱Poland gravisrs

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024