Skip to content

Exception 'TypeError' with message 'Unsupported operand types: string * int' with line-height: inherit #2683

Closed
@Zae

Description

@Zae

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)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions