PHP
Composer and PHP CI errors - resolved.
Fix PHP CI failures: Composer install and dependency errors, extension and version issues, and PHPUnit problems.
Composer
Install, resolution, autoload.
"--ignore-platform-reqs"Understand Composer --ignore-platform-reqs in CI - it skips PHP version and ext-* checks so install proceeds,…
"--ignore-platform-req" trapFix a Composer build that installs with `--ignore-platform-req` in CI but fails at runtime - the override sil…
"--no-dev" autoload gapFix "Class not found" after `composer install --no-dev` in CI - a class from a require-dev package, or an aut…
"Allowed memory size exhausted"Fix Composer "PHP Fatal error: Allowed memory size of N bytes exhausted" during install/update in CI - raise…
"memory exhausted (install)"Fix Composer "PHP Fatal error: Allowed memory size of N bytes exhausted" during composer install/update in CI…
"Allowed memory size of X bytes exhausted"Fix Composer "PHP Fatal error: Allowed memory size of X bytes exhausted" during install or update in CI - the…
"Allowed memory size of X bytes exhausted"Fix Composer "Allowed memory size of X bytes exhausted" in CI - the resolver hit the PHP memory_limit. Run Co…
"composer audit" failedFix a failing `composer audit` step in CI - a dependency has a published security advisory. Upgrade the packa…
"Cannot create cache directory"Fix Composer "Cannot create cache directory ..., or directory is not writable. Proceeding without cache." in…
"Class not found" (dump-autoload)Fix a Composer "Class not found" in CI caused by a stale autoloader - regenerate it with composer dump-autolo…
"Class ... not found" after installFix "Fatal error: Uncaught Error: Class X not found" in CI after composer install - the autoloader was not re…
"could not find a composer.json file"Fix "Composer could not find a composer.json file in ..." in CI - the command ran in the wrong directory or t…
"COMPOSER_AUTH" not setFix Composer 401/403 on a private registry in CI when `COMPOSER_AUTH` or `auth.json` is missing or malformed…
"does not contain valid JSON"Fix Composer "composer.json does not contain valid JSON" / "Parse error ... Expected" in CI - a trailing comm…
"config.platform" driftFix a Composer `config.platform.php` that no longer matches the runtime in CI - the solver locks against a fa…
"401 against github.com"Fix Composer "Could not authenticate against github.com" / HTTP 401 in CI - a GitHub API rate limit or privat…
"Could not authenticate against github.com"Fix Composer "Could not authenticate against github.com" in CI - Composer hit the GitHub API rate limit or a…
"Could not authenticate against github.com"Fix Composer "Could not authenticate against github.com" in CI - the GitHub API rate limit was hit or no toke…
"Could not authenticate against github.com"Fix Composer "Could not authenticate against github.com" / 403 for private repositories in CI - provide a git…
"could not find package X"Fix Composer "The requested package X could not be found" in CI - the named package or version is not availab…
"Could not find package ... did you mean"Fix Composer "Could not find package vendor/name ... did you mean vendor/other?" in CI - a misspelled name or…
"Could not find package"Fix Composer "Could not find a matching version of package X" / "Could not find package" in CI - typos, missi…
"Could not scan for classes inside"Fix Composer "Could not scan for classes inside \"src/X\" which does not appear to be a file nor a folder" in…
"curl error 60: SSL certificate problem"Fix Composer "curl error 60 while downloading ...: SSL certificate problem" in CI - the runner could not veri…
"Failed to download ... 403"Fix Composer "Failed to download vendor/package ... 403 Forbidden" in CI - a dist archive was rejected, usual…
"Failed to download ... 404"Fix Composer "Failed to download <pkg> ... returned 404" in CI - a deleted tag, a removed package, or a stale…
"Failed to download ... 403"Fix Composer "Failed to download X from dist: ... 403 Forbidden / rate limit" in CI - GitHub throttled the ar…
"curl error downloading"Fix Composer "Failed to download <package>" with a curl error in CI - a transient network failure pulling a p…
"Fatal error: Out of memory"Fix Composer "Fatal error: Out of memory (allocated X) (tried to allocate Y)" in CI - the process exhausted h…
"file could not be downloaded (HTTP/1.1 404)"Fix Composer "The 'https://...' file could not be downloaded (HTTP/1.1 404 Not Found)" for a private repo in…
"requirements incompatible with your PHP version"Fix Composer "package X has requirements incompatible with your PHP version, PHP extensions and Composer vers…
"lock file does not contain a compatible set"Fix Composer "Your lock file does not contain a compatible set of packages. Please run composer update." in C…
"lock not compatible"Fix Composer "Your lock file does not contain a compatible set of packages" in CI - the locked packages canno…
"lock file is not up to date"Fix Composer "The lock file is not up to date with the latest changes in composer.json. You may be getting ou…
"lock file is not up to date"Fix Composer "The lock file is not up to date with the latest changes in composer.json" in CI - regenerate th…
"lock file out of date"Fix Composer "The lock file is not up to date with the latest changes in composer.json" in CI - composer.json…
"Nothing to install, update or remove"Understand Composer "Nothing to install, update or remove" in CI - install succeeds but a stale lock means th…
"package is abandoned"Understand Composer "Package vendor/package is abandoned, you should avoid using it" in CI - a maintainer mar…
"package is abandoned"Fix Composer "Package X is abandoned, you should avoid using it" in CI - a dependency is flagged abandoned an…
"proc_open(): fork failed"Fix Composer "proc_open(): fork failed - Cannot allocate memory" in CI - the runner could not spawn a child p…
"replace"/"provide" conflictFix Composer resolution breakage from a `replace` or `provide` entry in CI - a package claiming to replace an…
"ext-X is missing from your system"Fix Composer "requires ext-X * -> it is missing from your system. Install or enable PHP's X extension." in CI…
"requires ext-X * but it is missing"Fix Composer "requires ext-<name> * but it is missing from your system" in CI - install the PHP extension the…
"your php version (X) does not satisfy"Fix Composer "requires php >=8.x -> your php version (X) does not satisfy that requirement" in CI - the runne…
"requires php ... your version does not satisfy"Fix Composer "requires php >=8.1 but your php version (8.0) does not satisfy that requirement" in CI - pin th…
"Root composer.json requires ... does not match"Fix Composer "Root composer.json requires vendor/pkg X but it does not match the constraint" in CI - your roo…
"Script ... error code"Fix Composer "Script <cmd> handling the post-install-cmd event returned with error code N" in CI - a failing…
"file could not be downloaded"Fix transient Composer "The \"https://...\" file could not be downloaded" and "curl error" failures in CI - n…
"lock file is not up to date"Fix Composer "The lock file is not up to date with the latest changes in composer.json" in CI - the lock drif…
"ext-X is missing"Fix Composer "the requested PHP extension ext-X is missing from your system" in CI - a package requires a PHP…
"repository could not be loaded"Fix Composer "The \"https://...\" file could not be downloaded (HTTP/1.1 404 Not Found)" and "repository coul…
"zip extension and unzip/7z commands are both missing"Fix Composer "The zip extension and unzip/7z commands are both missing, skipping" in CI - Composer cannot ext…
"plugin not allowed"Fix Composer 2 "X contains a Composer plugin which is not in your allow-plugins config" in CI - a plugin is b…
"running composer with Xdebug enabled"Fix Composer "You are running composer with Xdebug enabled. This has a major impact on runtime performance" i…
"could not be resolved to an installable set"Fix Composer "Your requirements could not be resolved to an installable set of packages" in CI - the dependen…
"could not be resolved to an installable set"Fix Composer "Your requirements could not be resolved to an installable set of packages" in CI - the solver f…
"could not be resolved"Fix Composer "Your requirements could not be resolved to an installable set of packages" in CI - version or p…
"requirements could not be resolved"Fix Composer "Your requirements could not be resolved to an installable set of packages" in CI - incompatible…
"allow-plugins" deprecationFix Composer 2 warning about implicit plugin trust / deprecated allow-plugins behavior in CI - declare an exp…
"Loading from cache" integrityFix Composer "The zip extension and unzip/7z commands are both missing" and corrupted "Loading from cache" ar…
No Composer cache (slow install)Speed up Composer in CI by caching the Composer directory - without a cache, every job re-downloads all dist…
"Composer detected ... requirements"Fix Composer "Your Composer dependencies require a PHP version >= 8.2.0" from platform_check.php in CI - the…
"allow-plugins" blockedFix Composer 2 blocking a plugin in CI - "X is blocked because you have not enabled it in allow-plugins" - by…
Private Packagist "403 Forbidden"Fix Composer 403 Forbidden from Private Packagist in CI - the token authenticated but lacks access, or the wr…
"@php" script failureFix a Composer script that uses `@php` failing in CI - the `@php` proxy resolves to a different interpreter o…
"could not authenticate" (VCS)Fix Composer "Failed to clone … could not read Username" and authentication errors for a `type: vcs` private…
"memory exhausted" (composer)Fix "Allowed memory size of N bytes exhausted" during composer install/update in CI - the dependency solver h…
"Failed to clone" (git auth)Fix Composer "Failed to clone ... fatal: Authentication failed" in CI - a Git-sourced package cannot authenti…
"requires ext-X *" missingFix Composer "requires ext-X * but it is missing from your system" in CI - a package needs a PHP extension th…
"openssl extension is required"Fix "The openssl extension is required for SSL/TLS protection" in CI - Composer cannot make secure connection…
"requires php >=X"Fix Composer "requires php >=X but your PHP version does not satisfy that requirement" in CI - the runner PHP…
"lock does not contain a compatible set"Fix "Your lock file does not contain a compatible set of packages. Please run composer update" in CI - the lo…
"drush: command not found"Fix Drupal "drush: command not found" or "The drush command ... could not be found" in CI - the runner uses a…
"The website encountered an unexpected error"Fix Drupal "The website encountered an unexpected error" in CI - a stale container or cache after a code or c…
"requires drupal/core ... conflict"Fix Composer "Your requirements could not be resolved" around drupal/core in CI - a contrib module constrains…
"Site UUID in source storage does not match"Fix Drupal "Site UUID in source storage does not match the target storage" during drush config:import in CI -…
"A facade root has not been set"Fix Laravel "RuntimeException: A facade root has not been set." in CI - a facade was used before the applicat…
"Class ... not found"Fix Laravel "Error: Class ... not found" in CI - the autoloader map is stale, so run composer dump-autoload (…
"Target class [...] does not exist"Fix Laravel "Illuminate\Contracts\Container\BindingResolutionException: Target class [...] does not exist" in…
"Area code is not set"Fix Magento 2 "Area code not set" / "Area code is already set" in CI - custom scripts use the object manager…
"setup:di:compile" failedFix Magento 2 "setup:di:compile" failures in CI - dependency-injection compilation aborts on an inconsistent…
"setup:upgrade" failedFix Magento 2 "setup:upgrade" failures in CI - schema or data upgrade aborts on a database connection issue,…
"Unable to apply data patch"Fix Magento 2 "Unable to apply data patch ... due to error" during setup:upgrade in CI - a data patch threw a…
"Authentication required (repo.magento.com)"Fix Composer "Authentication required (repo.magento.com)" installing magento/product-community-edition in CI…
"Class not found" (autoload)Fix PHP "Fatal error: Uncaught Error: Class \"X\" not found" from a stale Composer autoloader in CI - run com…
"Command \"...\" is not defined"Fix Symfony "There are no commands defined" / "Command X is not defined" for bin/console in CI - the bundle t…
"Allowed memory size ... exhausted"Fix "PHP Fatal error: Allowed memory size of X bytes exhausted" during composer or cache:clear in CI - PHP hi…
"the requested PHP extension ext-X is missing"Fix composer "requires ext-intl / ext-pdo_pgsql ... but it is missing" in CI - a Symfony app needs a PHP exte…
"symfony/flex" has not runFix Symfony Flex not applying recipes during composer install in CI - Flex is disabled as a plugin, so config…
MakerBundle "make:*" unavailableFix Symfony MakerBundle "make:*" commands being unavailable in CI - symfony/maker-bundle is a dev dependency…
Bedrock ".env" / WP_HOME missingFix Bedrock "Dotenv\Exception\ValidationException: WP_HOME is missing" in CI - the .env that supplies WP_HOME…
"Could not find package wpackagist-plugin"Fix Composer "Could not find a matching version of package wpackagist-plugin/..." in CI - the WPackagist repo…
"Error establishing a database connection"Fix WordPress "Error establishing a database connection" in CI - WP-CLI loaded core but could not reach the M…
"This does not seem to be a WordPress installation"Fix WP-CLI "Error: This does not seem to be a WordPress installation" in CI - wp ran from a directory with no…
Runtime & extensions
Versions, missing extensions.
"ext-gd * -> it is missing from your system"Fix Composer "requires ext-gd * -> it is missing from your system" in CI - a dependency needs a PHP extension…
"requested PHP extension ext-intl is missing"Fix Composer "The requested PHP extension ext-intl is missing from your system" in CI - install the intl exte…
"artisan" command failedFix a failing `php artisan` command in CI - missing APP_KEY, a stale config cache, or an unset env var makes…
Redis "Connection refused"Fix Laravel Redis "Connection refused [tcp://127.0.0.1:6379]" in CI - add a Redis service and the phpredis/pr…
"could not find driver"Fix Laravel "PDOException: could not find driver" in CI - the pdo_mysql, pdo_pgsql, or pdo_sqlite PHP extensi…
"Database file ... does not exist"Fix Laravel "Database ... does not exist. Ensure this is an absolute path" for sqlite in CI - create the data…
"Please install the ... Flysystem adapter"Fix Laravel "InvalidArgumentException: Please install the ... Flysystem adapter" in CI - the storage disk nee…
"No application encryption key has been specified"Fix Laravel "RuntimeException: No application encryption key has been specified." in CI - APP_KEY is unset, s…
"[1045] Access denied for user"Fix Laravel "SQLSTATE[HY000] [1045] Access denied for user" in CI - the DB_USERNAME or DB_PASSWORD does not m…
"[1049] Unknown database"Fix Laravel "SQLSTATE[HY000] [1049] Unknown database" in CI - DB_DATABASE names a schema the DB service never…
"[2002] Connection refused"Fix Laravel "SQLSTATE[HY000] [2002] Connection refused" in CI - the DB service is not reachable at DB_HOST/DB…
"log ... could not be opened"Fix Laravel "The stream or file storage/logs/laravel.log could not be opened in append mode" in CI - the logs…
"Vite manifest not found"Fix Laravel "Vite manifest not found at public/build/manifest.json" in CI - feature tests that render views n…
APP_ENV not "testing" in CIFix Laravel tests running against the wrong environment in CI - set APP_ENV=testing or use phpunit.xml env so…
config:cache ignoring .envFix Laravel CI where config:cache was built before env was ready - once cached, env() returns null in config…
"Nothing to migrate."Fix Laravel "Nothing to migrate." in CI where tables are still missing - migrations point at a different data…
Missing .env fileFix Laravel CI failures caused by a missing .env file - the runner has no .env because it is gitignored, so c…
"Migration ... failed"Fix Laravel test suite where RefreshDatabase migrations fail in CI - a migration errors against the testing D…
storage not writableFix Laravel "Please provide a valid cache path" or permission errors on storage/ and bootstrap/cache in CI -…
"Seeders\\X not found"Fix Laravel "Class Database\Seeders\X not found" in CI - the seeder is not autoloaded because the classmap is…
"No application encryption key"Fix Laravel "No application encryption key has been specified" in CI - APP_KEY is unset because there is no .…
"SQLSTATE[HY000] connection refused"Fix Laravel "SQLSTATE[HY000] [2002] Connection refused" against the test database in CI - the DB service is n…
"Mix manifest does not exist"Fix Laravel "The Mix manifest does not exist" in CI - views call mix() but assets were not built, so public/m…
"Vite manifest not found"Fix Laravel "Unable to locate file in Vite manifest" / "Vite manifest not found" in CI - the @vite assets wer…
"could not find driver" (pdo_mysql)Fix "PDOException: could not find driver" for a MySQL connection in CI - the pdo_mysql extension is not loade…
"memory exhausted (CLI)"Fix "PHP Fatal error: Allowed memory size of N bytes exhausted" running a PHP CLI script in CI - the process…
"Call to undefined function"Fix "PHP Fatal error: Call to undefined function" in CI - a disabled extension (mbstring, json, curl) or a fu…
"Call to undefined function pcntl_fork()"Fix "Fatal error: Uncaught Error: Call to undefined function pcntl_fork() / sodium_crypto_..." in CI - the fu…
"Call to undefined function"Fix "PHP Fatal error: Uncaught Error: Call to undefined function X()" in CI - a function from a PHP extension…
"Class not found" (autoload)Fix "Class X not found" in CI when the class file exists - the Composer autoloader is stale or the class is n…
"could not find driver"Fix PDOException "could not find driver" in CI - the pdo_mysql, pdo_pgsql, or pdo_sqlite extension is not loa…
"PHP Deprecated:" treated as errorFix "PHP Deprecated: X" failing a build in CI - a deprecation notice is emitted to stderr or converted to an…
"Class not found"Fix "PHP Fatal error: Uncaught Error: Class X not found" in CI - the autoloader cannot resolve the class, usu…
"Fatal error: Uncaught Error"Fix "PHP Fatal error: Uncaught Error" in CI - an Error (undefined method, null call, or missing class) propag…
"Fatal error: Uncaught Error"Fix "PHP Fatal error: Uncaught Error" in CI - calling a method on null, a type error, or a missing class that…
"Parse error: syntax error"Fix "PHP Parse error: syntax error, unexpected token" in CI - invalid PHP syntax, often from a language featu…
"syntax error, unexpected"Fix "PHP Parse error: syntax error, unexpected X" in CI - the runner PHP could not parse a file, often becaus…
"Parse error: syntax error"Fix "PHP Parse error: syntax error, unexpected ..." in CI - a typo, a missing semicolon/brace, or syntax newe…
"PHP version not satisfied"Fix Composer/PHP "requires php ^X but your php version does not satisfy that requirement" in CI - the runner…
"Xdebug not loaded" (coverage)Fix coverage runs that report Xdebug is not loaded (or not in coverage mode) in CI - enable Xdebug with xdebu…
"memory size exhausted" (CLI)Fix "PHP Fatal error: Allowed memory size exhausted" from a CLI command in CI - a console command, build scri…
"cURL error 60: SSL certificate"Fix "cURL error 60: SSL certificate problem: unable to get local issuer certificate" in CI - PHP/cURL has no…
"PHP Deprecated" fails CIFix PHP 8.x deprecation notices breaking CI - E_DEPRECATED is included in error_reporting and an error handle…
Deprecation notices fail CIFix PHP "Deprecated:" notices that fail CI - dynamic properties and nullable-type deprecations on PHP 8.x tre…
"Cannot redeclare"Fix "PHP Fatal error: Cannot redeclare X" in CI - a function or class is defined twice, usually from a double…
"Declaration must be compatible"Fix "PHP Fatal error: Declaration of X must be compatible with Y" in CI - an overriding method or interface i…
"Maximum execution time exceeded"Fix "Fatal error: Maximum execution time of N seconds exceeded" in CI - a CLI command or test runs longer tha…
"Uncaught TypeError"Fix "PHP Fatal error: Uncaught TypeError" in CI - a value passed to a typed parameter, or returned from a typ…
intl / gd / zip missingFix runtime failures from a missing ext-intl, ext-gd, or ext-zip in CI - Collator/NumberFormatter, image func…
OPcache stale in CLIFix PHP OPcache serving stale bytecode in CI - a long-lived process or shared cache runs old code after a cha…
"failed opening required"Fix "PHP Warning: require(...): Failed opening required 'X'" (and the following fatal) in CI - the path is wr…
"cache:clear" failedFix Symfony `cache:clear` failing in CI - a missing env var, an unconfigured service, or a permissions issue…
"Unable to write in the cache directory"Fix Symfony "Unable to write in the cache directory (var/cache/...)" during cache:clear in CI - the runner us…
"Cannot autowire service"Fix Symfony "Cannot autowire service X: argument $y references interface/class Z but no such service exists"…
"Controller requires ... argument"Fix Symfony "Controller X requires that you provide a value for the $y argument" in CI - the resolver could n…
"Migration ... failed"Fix Doctrine "Migration DoctrineMigrations\VersionYYYY failed during Execution" in CI - a migration query err…
"The database schema is not in sync"Fix Doctrine "The database schema is not in sync with the current mapping file" from schema:validate in CI -…
"Environment variable not found: \"APP_SECRET\""Fix Symfony "Environment variable not found: APP_SECRET" in CI - the container references %env(APP_SECRET)% b…
"Environment variable not found: \"DATABASE_URL\""Fix Symfony "Environment variable not found: DATABASE_URL" in CI - Doctrine needs %env(resolve:DATABASE_URL)%…
"a dependency ... which does not exist"Fix Symfony "The service X has a dependency on a non-existent service Y" in CI - a service definition referen…
"lint:container" reports invalid wiringFix Symfony "bin/console lint:container" failures in CI - the command compiles the container and reports inva…
"The stream or file var/log/... could not be opened"Fix Symfony "The stream or file var/log/test.log could not be opened in append mode" in CI - Monolog cannot w…
"You have requested a non-existent service"Fix Symfony "You have requested a non-existent service X" in CI - the container has no service by that id, us…
"asset ... not found in importmap"Fix Symfony AssetMapper "Unable to find asset" and importmap failures in CI - the vendored asset was not down…
"Compile Error" during cache:clearFix Symfony "Compile Error: ..." raised while cache:clear warms the container in CI - a PHP parse or type err…
"No mapping information found"Fix Doctrine "Class X is not a valid entity or mapped super class" / "No mapping information found" in CI - t…
"SQLSTATE[08006] ... could not connect"Fix Doctrine "An exception occurred in the driver: SQLSTATE[08006] ... could not connect to server" in CI - t…
"Unable to find template"Fix Symfony Twig "Unable to find template X (looked into: ...)" in CI - Twig searched its configured paths an…
"Cannot autowire service"Fix Symfony "Cannot autowire service X: argument $y references ... but no such service exists" in CI - the ty…
compile error (cache:clear)Fix a Symfony container compile error surfaced by cache:clear in CI - invalid YAML/XML config, an unknown ser…
"Environment variable not found"Fix Symfony "Environment variable not found: X" in CI - a %env(X)% reference has no value because the env var…
Wrong PHP versionFix the wrong PHP version running in CI - newer syntax failing or extensions missing because the runner defau…
Testing
PHPUnit and tooling.
"Class Faker\... not found"Fix Laravel "Class \"Faker\Factory\" not found" in CI - fakerphp/faker is a dev dependency, so installing wit…
"No application encryption key has been specified"Fix Laravel "RuntimeException: No application encryption key has been specified." in CI - APP_KEY is unset in…
artisan test vs vendor/bin/phpunitFix Laravel CI where php artisan test and vendor/bin/phpunit behave differently - artisan test boots the fram…
"[2002] Connection refused"Fix Laravel/PDO "SQLSTATE[HY000] [2002] Connection refused" in CI tests - the app could not reach the databas…
"419 ... CSRF token mismatch"Fix Laravel feature tests failing with a 419 CSRF token mismatch in CI - POST requests need a valid token; us…
Pest not bound to TestCaseFix Laravel Pest failures in CI where the app is not booted - Pest.php must bind the test files to Tests\Test…
"Class Tests\... not found"Fix Laravel PHPUnit "Class Tests\... not found" in CI - the Tests namespace is under autoload-dev, so install…
PHP-CS-Fixer failureFix PHP-CS-Fixer failing CI in --dry-run mode - files do not match the configured ruleset. Run the fixer to a…
php-cs-fixer failedFix php-cs-fixer failing a CI `--dry-run` check - files violate the configured ruleset, or a tool/PHP version…
"[ERROR] Found N errors"Fix PHPStan "[ERROR] Found N errors" in CI - static analysis at the configured level reported type or logic i…
PHPStan / Psalm failureFix PHPStan or Psalm failing CI - newly reported type errors, a raised level, or a stale baseline make static…
PHPStan/Psalm level failFix PHPStan or Psalm failing CI after a level bump or dependency upgrade - new errors at the configured level…
"--testsuite" not foundFix PHPUnit "Test suite … could not be found" in CI - the `--testsuite` name does not match any `<testsuite>`…
"Allowed memory" (tests)Fix "PHP Fatal error: Allowed memory size exhausted" during a PHPUnit run in CI - raise memory_limit, fix a l…
"cannot open bootstrap"Fix PHPUnit "Cannot open bootstrap script <path>" in CI - the bootstrap file configured in phpunit.xml is mis…
"TestCase not found"Fix PHPUnit "Class \"PHPUnit\Framework\TestCase\" not found" in CI - dev dependencies not installed (--no-dev…
"Class ... could not be found"Fix PHPUnit "Class X could not be found in Y" in CI - the test references a class the autoloader does not kno…
"FAILURES!" (assertions)Fix PHPUnit "FAILURES! ... Failures: K" exiting non-zero in CI - real assertion failures, or CI-only differen…
"Fatal error during run"Fix a PHP Fatal error that aborts a PHPUnit run in CI - an uncaught error in test or app code crashes the who…
"No coverage driver"Fix PHPUnit "No code coverage driver is available" in CI - enable pcov or Xdebug (with coverage mode), since…
"No tests executed!"Fix PHPUnit "No tests executed!" in CI - wrong testsuite path, non-matching naming conventions, or a filter t…
"No tests executed!"Fix PHPUnit "No tests executed!" in CI - PHPUnit ran but discovered no tests, usually a misconfigured testsui…
"phpunit: command not found"Fix "phpunit: command not found" in CI - PHPUnit is not on PATH because dev dependencies were not installed o…
"PHPUnit requires PHP X"Fix PHPUnit "This version of PHPUnit requires PHP >= X" in CI - the installed PHPUnit needs a newer PHP than…
"Risky Test"Fix PHPUnit "Risky" results in CI - "This test did not perform any assertions", "test executed code not inten…
"There was 1 error"Fix PHPUnit "There was 1 error" in CI - a test threw an exception or fatal rather than failing an assertion.…
"There was 1 failure"Fix PHPUnit "There was 1 failure" with "Failed asserting that X matches expected Y" in CI - a test assertion…
Coverage gate failedFix a CI coverage gate failing because line/method coverage fell below the configured minimum - add tests for…
Data provider errorFix PHPUnit data provider failures in CI - a non-static provider, a wrong return shape, or a mismatched argum…
PHPUnit deprecation failFix a PHPUnit run failing on deprecations in CI - `failOnDeprecation`/`failOnPhpunitDeprecation` promotes tri…
"memory exhausted" (phpunit)Fix "Allowed memory size of N bytes exhausted" during a PHPUnit run in CI - the suite accumulates memory acro…
"Class could not be found in"Fix PHPUnit "Class X could not be found in /path/to/Test.php" in CI - the test class name does not match the…
data provider deprecationFix PHPUnit data-provider deprecations failing CI - non-static providers, doc-comment @dataProvider on PHPUni…
fatal during bootstrapFix a PHP fatal error during PHPUnit bootstrap in CI - the bootstrap file (or autoloader it requires) fails b…
"did not perform any assertions"Fix PHPUnit risky-test failures "This test did not perform any assertions" in CI - failOnRisky/beStrictAboutT…
"run in a separate process"Fix PHPUnit failures from @runInSeparateProcess / processIsolation in CI - the child process crashed because…
"@requires PHP" mismatchFix PHPUnit tests being skipped (or the suite failing on skips) due to @requires / RequiresPhp version constr…
"N errors found" (Psalm)Fix Psalm "ERROR: ... N errors found" in CI - Psalm static analysis reported type issues at the configured er…
KernelTestCase "bootKernel()" failsFix Symfony KernelTestCase bootKernel() failures in CI - the test kernel cannot boot because APP_ENV is wrong…
"transport ... was not found"Fix Symfony Messenger "The transport X was not found" or a transport connection failure in CI - the messenger…
"Remaining ... deprecation notices"Fix Symfony PHPUnit deprecation failures in CI - the deprecation helper fails the suite when deprecations exc…
WebTestCase "kernel already booted"Fix Symfony WebTestCase "Booting the kernel ... a kernel has been booted already" in CI - createClient() was…
Explore other topics
GitHub ActionsWorkflow, runner, and YAML errors - diagnosed and fixed.
Node.js & npmnpm, yarn, and pnpm failures in CI - solved.
DockerBuild, run, compose, and registry errors - explained.
Pythonpip, poetry, venv, and pytest failures - fixed.
Java & JVMMaven, Gradle, and JVM failures in CI - resolved.
GoGo build, module, and test failures - diagnosed.