PHP 8.2 warning on dynamic property creation

Created on 16 August 2023, 11 months ago

Problem/Motivation

With PHP 8.2 we get:

Deprecated function: Creation of dynamic property Drupal\entityqueue\Plugin\views\relationship\EntityQueueRelationship::$first_alias is deprecated in Drupal\entityqueue\Plugin\views\relationship\EntityQueueRelationship->query() (line 200 of web/modules/contrib/entityqueue/src/Plugin/views/relationship/EntityQueueRelationship.php)
#0 web/modules/contrib/entityqueue/src/Plugin/views/relationship/EntityQueueRelationship.php(200): Drupal\error_page\ErrorPageErrorHandler::handleError()

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Closed: duplicate

Version

1.0

Component

Code

Created by

πŸ‡·πŸ‡΄Romania claudiu.cristea Arad πŸ‡·πŸ‡΄

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

  • Issue created by @claudiu.cristea
  • πŸ‡·πŸ‡΄Romania claudiu.cristea Arad πŸ‡·πŸ‡΄

    As I see this is a public property. Probably we should:

    * Declare as public property, to solve the PHP 8.2 warning, and deprecated it
    * Create a new firstAlias protected property
    * Create getter/setter and replace usages within module
    * Create a CR

  • Status changed to Closed: duplicate 11 months ago
  • πŸ‡·πŸ‡΄Romania claudiu.cristea Arad πŸ‡·πŸ‡΄

    This is duplicate of #3370066

Production build 0.69.0 2024