Skip to content

Illegal string offset warning in PHP 7 #927

Closed
@likeuntomurphy

Description

@likeuntomurphy

Saving a document triggers an Illegal string offset 'w:compatSetting' warning, because $this->settings['w:compat'] is initialized as an empty string instead of an empty array in src/PhpWord/Writer/Word2007/Part/Settings.php. This appears to be the case with PHP7 — PHP5 does not raise the warning.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions