github ecsphp/ecs 13.2.19
Released ECS 13.2.19

5 hours ago

What's new

🐛 Fix fatal error when configuring a PHP-CS-Fixer fixer

ECS replaces symfony/console, so Symfony\Component\Console\Application is never installed. Configuring a php-cs-fixer fixer with a deprecated option ran ConfigurableFixerTrait::configure(), which calls PhpCsFixer\Console\Application::getMajorVersion() — a class that extends the missing Symfony Application, so PHP fatalled resolving the parent:

PHP Fatal error: Uncaught Error: Class "Symfony\Component\Console\Application" not found

Now a declaration-only stub ships in /stubs (prefixed by php-scoper in the release build), so the run proceeds instead of fatalling:

-<?php  $x=1;
+<?php
+
+$x = 1;

A Configured Fixer CI reproducer guards against regressions.

Don't miss a new ecs release

NewReleases is sending notifications on new releases.