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

Open
2 tasks
Zae opened this issue Sep 19, 2024 · 1 comment

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)
@Zae Zae added the Bug Report label Sep 19, 2024
@Progi1984 Progi1984 added the HTML label Sep 19, 2024
@Progi1984 Progi1984 added this to the 1.4.0 milestone Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants
@Zae @Progi1984 and others