PHP Fatal error: Declaration of Piwik\Plugins\PagePerformance\JqplotDataGenerator\Chart::setAxisYValues(&$values, $seriesLabels = null) must be compatible with Piwik\Plugins\CoreVisualizations\JqplotDataGenerator\Chart::setAxisYValues(&$values, $seriesMetadata = null, ?array $seriesUnits = null) in piwik/plugins/PagePerformance/JqplotDataGenerator/Chart.php on line 55
No Fatal error.
I get this fatal error:
PHP Fatal error: Declaration of Piwik\Plugins\PagePerformance\JqplotDataGenerator\Chart::setAxisYValues(&$values, $seriesLabels = null) must be compatible with Piwik\Plugins\CoreVisualizations\JqplotDataGenerator\Chart::setAxisYValues(&$values, $seriesMetadata = null, ?array $seriesUnits = null) in piwik/plugins/PagePerformance/JqplotDataGenerator/Chart.php on line 55
The method signature of setAxisYValues
in plugins\CoreVisualizations/JqplotDataGenerator/Chart
was updated with an extra parameter as part of #19353, the PagePerformance plugin overrides this method and already had a slightly different method signature ($seriesLabels
vs $seriesMetaData
), so the additional parameter has now made them incompatible.
The method signature in PagePerformance needs to be updated to match core.