We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
PHPWord/src/PhpWord/TemplateProcessor.php
Line 272 in 8b891bb
return $subject ? Text::toUTF8($subject) : '';
Cause issue if subject is 0, that actually i want to print, but unfortunately when $subject=0 as string or int or char it results in false.
Please fix this issue
The text was updated successfully, but these errors were encountered:
I also encountered a similar problem, and I haven't been able to solve it yet.
Sorry, something went wrong.
my way to solve it: override PHPWord/src/PhpWord/TemplateProcessor.php in composer.json and replace return $subject ? Text::toUTF8($subject) : ''; >>> return (null !== $subject) ? Text::toUTF8($subject) : '';
return (null !== $subject) ? Text::toUTF8($subject) : '';
Thanks @truestealth - works great!
0
Successfully merging a pull request may close this issue.
PHPWord/src/PhpWord/TemplateProcessor.php
Line 272 in 8b891bb
return $subject ? Text::toUTF8($subject) : '';
Cause issue if subject is 0, that actually i want to print,
but unfortunately when $subject=0 as string or int or char it results in false.
Please fix this issue
The text was updated successfully, but these errors were encountered: