Skip to content

Blink: dump the config of fixers that keep options in their own props - #338

Merged
TomasVotruba merged 1 commit into
ecsphp:mainfrom
owenvoke:blink-dump-fixer-config-without-configuration-property
Nov 9, 2026
Merged

TomasVotruba merged 1 commit into
ecsphp:mainfrom
owenvoke:blink-dump-fixer-config-without-configuration-property

Conversation

@owenvoke

@owenvoke owenvoke commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

BlinkConfigDumper read options only from the PHP-CS-Fixer configuration property, so a fixer that stores them in its own properties dumped {}. Symplify's LineLengthFixer is one: inline_short_lines => false was dropped and ecs-go inlined every short multiline block. Fall back to the options the fixer was configured with in ecs.php.

ECSConfig now registers itself in the container so the dumper reads the resolved configuration rather than a freshly autowired, empty instance.

`BlinkConfigDumper` read options only from the PHP-CS-Fixer `configuration`
property, so a fixer that stores them in its own properties dumped `{}`.
Symplify's `LineLengthFixer` is one: `inline_short_lines => false` was dropped
and ecs-go inlined every short multiline block. Fall back to the options the
fixer was configured with in `ecs.php`.

`ECSConfig` now registers itself in the container so the dumper reads the
resolved configuration rather than a freshly autowired, empty instance.
@TomasVotruba
TomasVotruba merged commit a4939f2 into ecsphp:main Nov 9, 2026
12 checks passed
@TomasVotruba

Copy link
Copy Markdown
Member

Got it, thank you

@owenvoke
owenvoke deleted the blink-dump-fixer-config-without-configuration-property branch November 9, 2026 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants