Skip to content

Upgrading PHPWord? #1209

@radarhere

Description

@radarhere

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

"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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions