Fix deprecated "creation of dynamic property" in PHP 8.2

Created on 31 March 2025, 5 days ago

Problem/Motivation

When using the Y Camp module on PHP 8.2, you may encounter a warning on the LB display:

Deprecated function: Creation of dynamic property Drupal\y_camp\Plugin\Block\CampInfoBlock::$node is deprecated in Drupal\y_camp\Plugin\Block\CampInfoBlock->build() (line 105 of modules/contrib/y_camp/src/Plugin/Block/CampInfoBlock.php).

Steps to reproduce

Enable the Y Camp module under PHP 8.2

Proposed resolution

Fix it.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ“Œ Task
Status

Active

Version

1.2

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States froboy Chicago, IL

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024