Skip to content

Commit 6c2c1bb

Browse files
committed
fix SVG PR 855 syntax error
1 parent c14219a commit 6c2c1bb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tcpdf.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23732,7 +23732,9 @@ protected function SVGPath($d, $style='') {
2373223732
if (isset($val[2])) {
2373323733
// get curve parameters, see https://github.com/tecnickcom/TCPDF/issues/767
2373423734
$rawparams = preg_split('/([\,\s]+)/si', trim($val[2]));
23735-
$rawparams = array_filter($rawparams, fn ($p) => trim($p) != '');
23735+
$rawparams = array_filter($rawparams, function($p) {
23736+
return trim($p) != '';
23737+
});
2373623738
$params = array();
2373723739
foreach ($rawparams as $ck => $cp) {
2373823740
$params[$ck] = $this->getHTMLUnitToUnits($cp, 0, $this->svgunit, false);

0 commit comments

Comments
 (0)