jpgraph seems to be finally dying with PHP. (#1926)
* jpgraph seems to be finally dying with PHP. Until we have a valid alternative, disabling this run for PHP because it errors https://github.com/HuasoFoundries/jpgraph looks like a natural successor, but it isn't BC so it will require some work to integrate
This commit is contained in:
parent
c920a77649
commit
ae2468426f
|
|
@ -5,6 +5,11 @@ use PhpOffice\PhpSpreadsheet\Settings;
|
||||||
|
|
||||||
require __DIR__ . '/../Header.php';
|
require __DIR__ . '/../Header.php';
|
||||||
|
|
||||||
|
if (PHP_VERSION_ID >= 80000) {
|
||||||
|
$helper->log('Jpgraph no longer runs against PHP8');
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
// Change these values to select the Rendering library that you wish to use
|
// Change these values to select the Rendering library that you wish to use
|
||||||
Settings::setChartRenderer(\PhpOffice\PhpSpreadsheet\Chart\Renderer\JpGraph::class);
|
Settings::setChartRenderer(\PhpOffice\PhpSpreadsheet\Chart\Renderer\JpGraph::class);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,7 @@ class SampleTest extends TestCase
|
||||||
$skipped = [
|
$skipped = [
|
||||||
'Chart/32_Chart_read_write_PDF.php', // Unfortunately JpGraph is not up to date for latest PHP and raise many warnings
|
'Chart/32_Chart_read_write_PDF.php', // Unfortunately JpGraph is not up to date for latest PHP and raise many warnings
|
||||||
'Chart/32_Chart_read_write_HTML.php', // idem
|
'Chart/32_Chart_read_write_HTML.php', // idem
|
||||||
|
'Chart/35_Chart_render.php', // idem
|
||||||
];
|
];
|
||||||
// TCPDF and DomPDF libraries don't support PHP8 yet
|
// TCPDF and DomPDF libraries don't support PHP8 yet
|
||||||
if (\PHP_VERSION_ID >= 80000) {
|
if (\PHP_VERSION_ID >= 80000) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue