Fixing WP‑CLI “eval()’d code” Parse Errors on PHP 8.4 During “wp db import”
Seeing a WP-CLI parse error referencing Runner.php and “eval()’d code” when importing a database? It’s usually not your SQL file—it’s WP-CLI stumbling over wp-config.php (syntax, BOM/encoding, or config logic) or a WP-CLI/PHP 8.4 mismatch. Here’s the quickest path to diagnose and fix it.