{
  "id": 17512977,
  "title": "Two real WordPress plugins on PHP 8.4: what broke, and what I refused to auto-fix",
  "url": "https://urgent.news/2026/11/01/two-real-wordpress-plugins-on-php-8-4-what-broke-and-what-i-refused",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-01T01:47:21.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/zengbo/two-real-wordpress-plugins-on-php-84-what-broke-and-what-i-refused-to-auto-fix-bd4"
  },
  "original_language": "en",
  "account": "PHP 8.2 security updates ended on December 31, 2026, and PHP 8.3 support ended at the end of 2025. Hosting companies will soon force upgrades to either 8.3 or 8.4, regardless of whether the code is ready. The challenge lies in determining what will break during the upgrade, what can be fixed automatically without altering behavior, and how to fix it without dropping the PHP versions used by existing users. This is where Refit, an open-source CLI tool, comes in with two commands: refit scan and refit fix.\n\nRector and PHPCompatibility are used by Refit, but Refit adds its own twist. It reads the oldest PHP version that the code must support from the plugin or theme header, readme.txt, or composer.json. It then uses a pre-selected list of 54 compatibility rules, 52 from Rector and 2 of its own, to check for conflicts between the target version and the minimum supported version. Refit only makes fixes that will still run on the minimum supported version and reports issues that need manual intervention.",
  "summary": "PHP 8.2 stops getting security fixes on December 31, 2026. PHP 8.3 already left active support at the end of 2025. If you maintain a WordPress plugin, a theme, or an older PHP app, the hosting company is going to move you to 8.3 or 8.4 sooner or later, whether the code is ready or not. The hard part of that move is rarely \"does it compile\". It is three questions at once: What actually breaks on…",
  "key_points": [
    "Refit CLI tool identifies breaking changes in PHP 8.4 upgrades",
    "Scans code for conflicts between target and minimum supported PHP versions",
    "Automatically fixes compatible issues without altering existing user behavior"
  ],
  "editors_take": "Automated compatibility tools like Refit allow developers to prepare for mandatory server upgrades while maintaining support for older PHP versions through targeted, non-destructive code fixes.",
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}