Skip to content

Reintroduce support for PHP 8.0#473

Merged
galbus merged 12 commits intomainfrom
s-7860-support-php-80-again
Dec 12, 2025
Merged

Reintroduce support for PHP 8.0#473
galbus merged 12 commits intomainfrom
s-7860-support-php-80-again

Conversation

@galbus
Copy link
Copy Markdown
Contributor

@galbus galbus commented Dec 11, 2025

To support PHP 8.0 we need Symfony 5.4, which was released before PHP 8.4 and has deprecation warnings with PHP 8.4's stricter nullable parameter rules.

Symfony 5.4 triggers deprecation warnings on PHP 8.4.

PHP version support and configuration updates:

  • Changed the minimum required PHP version from 8.1 to 8.0 throughout all documentation (README.md, readme.txt, speechkit.php), configuration files (.wp-env.override.json.example, rector.php), and workflow files (.github/workflows/main.yml). [1] [2] [3] [4] [5] [6] [7] [8]
  • Updated the changelog and compatibility notes in readme.txt to reflect PHP 8.0 as the new minimum supported version. [1] [2]

GitHub Actions and Composer workflow changes:

  • Updated all GitHub Actions workflow steps and cache keys to use PHP 8.0 instead of 8.1. [1] [2] [3] [4] [5] [6]

Development dependency adjustments:

  • Downgraded several require-dev dependencies in composer.json to older major versions compatible with PHP 8.0 (e.g., behat/behat, doctrine/instantiator, phpro/grumphp, and various symfony/* packages).

Code quality and pre-commit configuration:

  • Updated GrumPHP configuration and documentation to reflect PHP 8.0 as the minimum version, and removed the explicit phpversion check from pre-commit tasks. [1] [2] [3]

@galbus galbus self-assigned this Dec 11, 2025
@linear
Copy link
Copy Markdown

linear bot commented Dec 11, 2025

@galbus galbus changed the title S 7860 support php 80 again Support php 8.0 again Dec 11, 2025
@galbus galbus changed the title Support php 8.0 again PHP 8.0 is now our minimum supported version Dec 11, 2025
@galbus galbus requested a review from Copilot December 11, 2025 14:20
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request downgrades the minimum supported PHP version from 8.1 to 8.0 across the entire codebase. The change is comprehensive and includes updates to plugin metadata, documentation, CI/CD workflows, and development dependencies to ensure PHP 8.0 compatibility.

Key changes:

  • Updated minimum PHP version requirement from 8.1 to 8.0 in all documentation and configuration files
  • Downgraded multiple Symfony packages and other dev dependencies to versions compatible with PHP 8.0
  • Updated GitHub Actions workflows to test against PHP 8.0 instead of 8.1

Reviewed changes

Copilot reviewed 9 out of 10 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
speechkit.php Updated "Requires PHP" metadata from 8.1 to 8.0
rector.php Changed PHP feature set from php81 to php80
readme.txt Updated version requirements and added changelog entry for version 6.0.3 with PHP 8.0 support, marked previous 8.1 requirement as obsolete
grumphp.yml Removed phpversion check task from pre-commit hooks
doc/code-quality-checks.md Updated documentation to reflect PHP 8.0 minimum version
composer.lock Updated lock file with downgraded dependency versions compatible with PHP 8.0
composer.json Downgraded behat/behat, doctrine/instantiator, phpro/grumphp, and multiple symfony/* packages to older major versions
README.md Updated PHP version badge to show 8.0+ support
.wp-env.override.json.example Added phpVersion configuration set to 8.0
.github/workflows/main.yml Updated all PHP version references and cache keys from 8.1 to 8.0 across multiple jobs

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@galbus galbus merged commit f95f69e into main Dec 12, 2025
10 checks passed
@galbus galbus deleted the s-7860-support-php-80-again branch December 12, 2025 07:49
@galbus galbus changed the title PHP 8.0 is now the minimum supported version Reintroduce support for PHP 8.0 Dec 15, 2025
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.

3 participants