Skip to content

Released ECS 13.2.19

Latest

Choose a tag to compare

@TomasVotruba TomasVotruba released this 24 Aug 17:03

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.