Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#2187 Addresses deprecation on PHP 8.1 in ZipArchi #2193

Merged
merged 1 commit into from
Feb 17, 2022
Merged

#2187 Addresses deprecation on PHP 8.1 in ZipArchi #2193

merged 1 commit into from
Feb 17, 2022

Conversation

garethellis36
Copy link
Contributor

Description

This addresses the deprecation in PHP 8.1 noted in issue #2187.

The fix does not break backwards compatibility because existing code can still pass no second argument (or pass explicitly pass null) and existing behaviour will not be affected.

Fixes #2187

Checklist:

  • I have run composer run-script check --timeout=0 and no errors were reported
  • The new code is covered by unit tests (check build/coverage for coverage report)
  • I have updated the documentation to describe the changes

I didn't add any new tests. There is already a test which tests calling PhpOffice\PhpWord\Shared\ZipArchive::open() with no second arg passed (i.e. null passed). The version of phpunit in the project means I can't run the test suite locally to verify that the 8.1 deprecation has been fixed.

I'm also not able to run the composer script because composer install installed an old version of phpunit that won't run on PHP 8.

@PowerKiKi PowerKiKi merged commit 01d87e1 into PHPOffice:develop Feb 17, 2022
@garethellis36
Copy link
Contributor Author

Thanks for merging. Is there a timeline for a tagged release please? :)

@PowerKiKi
Copy link
Member

It's been released as https://github.com/PHPOffice/PHPWord/releases/tag/0.18.3

@Progi1984 Progi1984 added this to the v0.18.3 milestone Sep 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Deprecation on PHP 8.1 in ZipArchive
3 participants