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

Issue fork y_camp-3516529

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

froboy created an issue. See original summary.

froboy’s picture

Status: Active » Needs review

  • froboy committed 9ec85cfb on 1.2.x
    [#3516529] Fix "creation of dynamic property" warning.
froboy’s picture

Version: 1.2.x-dev » 1.2.8
Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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