PHP 8.0 - fixed Error: Unknown named parameter $styles

This commit is contained in:
Libor M 2020-10-17 17:17:46 +02:00
parent a36a429128
commit bf1bb2b7ca
1 changed files with 1 additions and 1 deletions

View File

@ -182,7 +182,7 @@ class Html
} }
} }
$method = "parse{$method}"; $method = "parse{$method}";
$newElement = call_user_func_array(array('PhpOffice\PhpWord\Shared\Html', $method), $arguments); $newElement = call_user_func_array(array('PhpOffice\PhpWord\Shared\Html', $method), array_values($arguments));
// Retrieve back variables from arguments // Retrieve back variables from arguments
foreach ($keys as $key) { foreach ($keys as $key) {