-
Notifications
You must be signed in to change notification settings - Fork 29
Description
59573f8 effectively patched phpoffice.
I don't know exactly what code was run to require the change, but I would hope that changes to the vendored packages can be minimised in the long run.
Regarding the return type, I've created PHPOffice/PHPWord#2776 to suggest adding that to PHPWord.
Regarding the null change, if I'm reproducing the same problem you are, then I think the cause of the issue is actually
$xmlWriter->writeAttribute('w:w', $this->width); |
which writes the width without checking if it is null or not.
A check for this became part of PHPWord in 0.14 - https://github.com/PHPOffice/PHPWord/blob/0.14.0/src/PhpWord/Writer/Word2007/Style/Cell.php#L48-L55
Jethro uses 0.13
Line 3 in da3f74c
"phpoffice/phpword": "v0.13.*", |
I understand you may not wish to upgrade to the latest version of PHPWord because you wish to continue supporting PHP 5.3, but is there any reason not to upgrade to 0.18.3? PHP 5.3.3 is still supported - see https://packagist.org/packages/phpoffice/phpword#0.18.3