Skip to content

PHP 8.5 Compatibility - #1167

Draft
n7studios wants to merge 12 commits into
mainfrom
test-php-8.5
Draft

PHP 8.5 Compatibility#1167
n7studios wants to merge 12 commits into
mainfrom
test-php-8.5

Conversation

@n7studios

@n7studios n7studios commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes #1172, where a Using null as an array offset is deprecated PHP deprecation notice would display when using PHP 8.5 or higher.

deprecation-notice

This wasn't caught previously because:

  • GitHub actions did not run against PHP 8.5,
  • Xdebug wasn't configured to output PHP deprecated notices in GitHub actions

This PR:

  • Resolves the above,
  • Runs tests against PHP 8.5,
  • Configures the GitHub actions runner to show PHP deprecations as Xdebug errors, ensuring checkNoWarningsAndNoticesOnScreen catches deprecation notices
  • Drops tests for PHP 8.1, as this is end of life: https://www.php.net/supported-versions.php. Coding Standards and PHPStan continue to run against PHP 7.2 and higher to ensure backward compatibility is maintained.

Testing

Existing tests pass.

Checklist

@n7studios n7studios self-assigned this Aug 13, 2026
@github-actions

Copy link
Copy Markdown

WordPress Playground

🚀 Your PR has been built and is ready for testing in WordPress Playground!

Click here to test your changes in WordPress Playground

@n7studios
n7studios requested review from a team, ciccio-kit and noelherrick and removed request for a team August 24, 2026 06:03
@n7studios
n7studios marked this pull request as ready for review August 24, 2026 06:03
@n7studios
n7studios marked this pull request as draft August 24, 2026 07:17
@github-actions

Copy link
Copy Markdown

WordPress Playground

🚀 Your PR has been built and is ready for testing in WordPress Playground!

Click here to test your changes in WordPress Playground

@n7studios n7studios changed the title Run Tests against PHP 8.5 PHP 8.5 Compatibility Aug 24, 2026
@n7studios n7studios added this to the 3.4.0 milestone Aug 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Form Entries section triggers "Using null as an array offset is deprecated" on PHP 8.1+

1 participant