Skip to content

Bump minimum PHP version to 8.3 and update package dependencies#1569

Merged
cpeel merged 9 commits intoDistributedProofreaders:masterfrom
cpeel:test-php-version-bump
Mar 29, 2026
Merged

Bump minimum PHP version to 8.3 and update package dependencies#1569
cpeel merged 9 commits intoDistributedProofreaders:masterfrom
cpeel:test-php-version-bump

Conversation

@cpeel
Copy link
Copy Markdown
Member

@cpeel cpeel commented Mar 25, 2026

This PR does 4 main things in separate commits:

  • Updates the minimum PHP version to 8.3 (the version running on TEST and PROD)
  • Upgrades composer packages to work with PHP 8.3 and 8.4
    • Of note, this requires using an unreleased version of portable-utf8. The developer has gone a bit MIA and fixed the deprecation warnings in the code but didn't cut a new release. This will eventually be problematic for us and others.
  • Adds PHP 8.4 to the CI and fixes a couple of minor deprecation issues that were found.
  • Updates all dependencies to the latest minor update

All of these are in a single PR to reduce the testing effort. In broad strokes we should ensure:

  • Markdown project comments still seem reasonable (uses erusev/parsedown)
  • WordCheck and AV scan of an uploaded file in RFM work (uses symfony/process)

The unit tests will cover phpstan, phpunit, and other related dev-focused updates. Our WordCheck unit tests should do a good job of validating the portable-utf8 changes as well.

The only testing gap is phpmailer which I'm not too worried about but is challenging to test on TEST.

Sandbox: https://www.pgdp.org/~cpeel/c.branch/test-php-version-bump/

cpeel added 9 commits March 24, 2026 17:23
voku/portable-utf8 has commits to fix the deprecation warnings
for PHP 8.4, but only in the dev-master branch, not a released
version.

The package is pseudo-abandoned and this is a stop-gap until
the dev comes back, hands it off to someone else, or someone
forks it.
Fix two deprecation warnings.
@cpeel cpeel self-assigned this Mar 25, 2026
Copy link
Copy Markdown
Member

@srjfoo srjfoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried to do a reasonably thorough test of Markdown in PCs (following the instructions in our wiki page). See this project.

Copy link
Copy Markdown
Collaborator

@windymilla windymilla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good based on my limited understanding.

WordCheck appeared to work successfully.

RFM AV scan worked:

Status of file upload to folder ~uploads/Users/windymilla
File successfully uploaded
Checksum validated
Starting virus check
No infection found
File ukrainianfolk.zip successfully uploaded to folder ~uploads/Users/windymilla.

@cpeel cpeel merged commit ab9904f into DistributedProofreaders:master Mar 29, 2026
9 checks passed
@cpeel cpeel deleted the test-php-version-bump branch March 29, 2026 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants