Skip to content

fix: validate chart-img as a PNG data URI before storing or writing it #1203

fix: validate chart-img as a PNG data URI before storing or writing it

fix: validate chart-img as a PNG data URI before storing or writing it #1203

Triggered via push July 16, 2026 09:25
Status Failure
Total duration 1m 1s
Artifacts

test-php.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

3 errors and 3 warnings
PHPStan
Process completed with exit code 1.
PHPStan: classes/Visualizer/Module/Chart.php#L1771
Method Visualizer_Module_Chart::save_chart_image() should return attachment but returns int.
PHPStan: classes/Visualizer/Module/Chart.php#L1759
Ignored error pattern #^Method Visualizer_Module_Chart\:\:save_chart_image\(\) should return attachment but returns int\.$# (return.type) in path /home/runner/work/visualizer/visualizer/classes/Visualizer/Module/Chart.php is expected to occur 1 time, but occurred 2 times.
PHP Lint
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v4. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
PHPStan
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v4. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
PHPUnit
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v4. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/