Skip to content

phpword.ini deleted when updating via composer #1588

@laidbackindustries

Description

@laidbackindustries

This is:

  • a bug report

Expected Behavior

I use PHPWord in a Laravel project and include it via composer. To set outputEscapingEnabled globally to true I have created a phpword.ini file in vendor/phpoffice/phpword (by simply copying, renaming and editing phpword.ini.dist). When I update phpword via composer update phpoffice/phpword this phpword.ini is deleted. Hence my configuration is lost.

The expected behavior is, that phpword.ini is not deleted when I update phpword via composer.

Current Behavior

When I update phpword via composer update phpoffice/phpword this phpword.ini is deleted. Hence my configuration is lost.

Failure Information

Please help provide information about the failure.

How to Reproduce

Create a phpword.ini file inside you vendor/phpoffice/phpword folder and update phpword.

Context

  • PHP version: 7.2.11
  • PHPWord version: 0.16.0 (this happened while updating from 0.15.0 to 0.16.0 but also with earlier versions)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions