I have a problem at the moment of using it in PHP 8 version I get this error when I try to replace the variable, it generates the Word file but it does not generate it with the content of the variable, it simply generates the file with the written variables but not with its content.
I first added an alias to the String word to avoid having to modify many files but it works.
use PhpOffice\PhpWord\Shared\String AS OPString;
I tried adding this line but the same thing keeps happening, I don't know where I should fix the problem with the template variables.
"require": {
"phpoffice/phpword": "dev-develop"
}
if someone can help me guiding me where I can have the error or some file in which I did not have to modify that alias I remain attentive
Hi ,
A solution I can give you to avoid possible future problems is to update your library since those errors have already been corrected as the files are now.
I have a problem at the moment of using it in PHP 8 version I get this error when I try to replace the variable, it generates the Word file but it does not generate it with the content of the variable, it simply generates the file with the written variables but not with its content.
I first added an alias to the String word to avoid having to modify many files but it works.
I tried adding this line but the same thing keeps happening, I don't know where I should fix the problem with the template variables.
"require": { "phpoffice/phpword": "dev-develop" }
if someone can help me guiding me where I can have the error or some file in which I did not have to modify that alias I remain attentive