Skip to content

Template Processor setValue ensureUtf8Encoded kills string zero #2772

Open
@tripulsTPfeffer

Description

@tripulsTPfeffer

Describe the bug and add attachments

When you use TemplateProcessor->setValue('${FOO}', '0'), then the variable is replaced, but with an empty string instead of the given zero.

Expected behavior

TemplateProcessor->setValue('${FOO}', '0') replaces with given zero

Steps to reproduce

TemplateProcessor->setValue('${FOO}', '0')

PHPWord version(s) where the bug happened

1.3.0

PHP version(s) where the bug happened

= 7.4

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

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions