PHP 8.2 compatibility

Created on 31 August 2023, over 1 year ago
Updated 25 November 2023, about 1 year ago

Problem/Motivation

Using PHP 8.2 with views_json_source throw the following PHP notices

Deprecated function: Creation of dynamic property Drupal\views_json_source\Plugin\views\query\ViewsJsonQuery::$fields is deprecated in Drupal\views_json_source\Plugin\views\query\ViewsJsonQuery->addField() (line 528 of modules/contrib/views_json_source/src/Plugin/views/query/ViewsJsonQuery.php).
Drupal\views_json_source\Plugin\views\query\ViewsJsonQuery->addField('json', 'url', 'url', Array) (Line: 88)
Deprecated function: Creation of dynamic property Drupal\views_json_source\Plugin\views\field\ViewsJsonField::$table_alias is deprecated in Drupal\views_json_source\Plugin\views\field\ViewsJsonField->query() (line 79 of modules/contrib/views_json_source/src/Plugin/views/field/ViewsJsonField.php).
Drupal\views_json_source\Plugin\views\field\ViewsJsonField->query()

Steps to reproduce

Use PHP8.2, install project, set up a view using views_json_source plugin.

Proposed resolution

Fix deprecations.

📌 Task
Status

Fixed

Version

1.0

Component

Module

Created by

🇵🇹Portugal joao.ramos.costa

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