- Issue created by @jaymehls
- 🇹🇷Turkey emircan erkul Turkey
Looks like it will take some time. Until then here is the patch;
- Assigned to gaurav_manerkar
When rendering a pie chart (or likely any other type of chart) using PHP 8.2, you get the attached error message. This is due to a deprecation within PHP 8.2 about dynamic properties: https://php.watch/versions/8.2/dynamic-properties-deprecated
The error appears to occur here: (line 28 of modules/contrib/charts/modules/charts_highcharts/src/Settings/Highcharts/PlotOptions.php)
Using PHP 8.2 try to render a chart using the highcharts module. You should see a deprecation error message being displayed/logged to the log messages.
There are a couple of approaches to take here, one may require a significant refactor for how the highchart is creating types, whereas the other would be a workaround to allow dynamic properties by using the Allow Dynamic Properties https://www.php.net/manual/en/class.allowdynamicproperties.php attribute.
Active
3.5
Highcharts integration
Looks like it will take some time. Until then here is the patch;