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
This is a fairly straightforward issue, the title describes what I'm encountering and it's quite easy to replicate.
When creating a TextRun element in a Word document, I am unable to do this:
$section->addTitle($textRun, 3);
The error I encounter is: TypeError XMLWriter::text(): Argument #1 ($content) must be of type string, PhpOffice\PhpWord\Element\TextRun given.
TypeError XMLWriter::text(): Argument #1 ($content) must be of type string, PhpOffice\PhpWord\Element\TextRun given.
How I tried adding a TextRun in my Word document:
$exampleTextRun = new \PhpOffice\PhpWord\Element\TextRun(); $exampleTextRun->addText("Title ", 'fontSize9'); $exampleTextRun->addText("colour", ['color' => 'DD0000']); $section->addTitle($exampleTextRun, 2);
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This is a fairly straightforward issue, the title describes what I'm encountering and it's quite easy to replicate.
When creating a TextRun element in a Word document, I am unable to do this:
$section->addTitle($textRun, 3);
The error I encounter is:
TypeError XMLWriter::text(): Argument #1 ($content) must be of type string, PhpOffice\PhpWord\Element\TextRun given.
How I tried adding a TextRun in my Word document:
The text was updated successfully, but these errors were encountered: