Skip to content

PHP8 supportΒ #2105

@simivar

Description

@simivar

Is your feature request related to a problem? Please describe.

Currently, PHPWord is installable on PHP8 but the tests fail to run as it's installed with PHPUnit 4.8.36 which uses each() function removed from PHP in version 8.

Describe the solution you'd like

We have to allow PHPUnit of version ^8.0|^9.0 so we can run tests on PHP8 but... in version 8 return types were added so we have to as well remove support for PHP lower than 7.1.

  • require PHPUnit >= 8.0
  • require PHP >= 7.1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions