Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
2 tasks
Zae opened this issue Sep 19, 2024 · 1 comment · Fixed by #2733
Closed
2 tasks
Assignees
Milestone

Comments

@Zae
Copy link

Zae commented Sep 19, 2024

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)
@Progi1984
Copy link
Member

This issue has been fixed by a maintainer. You can help him by sponsoring him through Github sponsors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

3 participants
@Zae @Progi1984 and others