Closed
Description
Describe the bug and add attachments
It appear that whenever line-height: inherit;
is used in an inline style attribute, phpword crashes with the error:
Exception 'TypeError' with message 'Unsupported operand types: string * int'
Expected behavior
phpWord to not crash with a TypeError
Steps to reproduce
<div>
<div style="line-height:inherit;">
</div>
</div>
Html::addHtml($section, $content);
PHPWord version(s) where the bug happened
1.3.0
PHP version(s) where the bug happened
8.1.2
Priority
- I want to crowdfund the bug fix (with @algora-io) and fund a community developer.
- I want to pay the bug fix and fund a maintainer for that. (Contact @Progi1984)