Skip to content

Deprecate withEditorConfig(), drop EditorConfig support - #68

Merged
TomasVotruba merged 1 commit into
mainfrom
deprecate-editorconfig
Sep 4, 2026
Merged

Deprecate withEditorConfig(), drop EditorConfig support#68
TomasVotruba merged 1 commit into
mainfrom
deprecate-editorconfig

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

EditorConfig discovery leaked project-wide .editorconfig settings (indent style, end of line, max line length, trailing whitespace, final newline, quote type) into ECS, silently overriding the rules configured through sets. Coding standard should be driven by the ECS config, not by a file shared with other tooling.

What changed

  • withEditorConfig() is kept but reduced to a deprecation warning (rendered via OutputPrinter, same as withPhpCsFixerSets()), pointing users to configure the matching PHP-CS-Fixer rules explicitly.
  • Removed the underlying support: applyEditorConfigSettings(), the $useEditorConfig state and __invoke() wiring, and the Configuration/EditorConfig/ value objects + factory.
  • Dropped EditorConfigFactoryTest.
  • Removed the README section and the ->withEditorConfig() call from this repo's own ecs.php.

Note

Projects relying on ->withEditorConfig() should configure the equivalent PHP-CS-Fixer rules directly (indentation via ->withSpacing(), line length via LineLengthFixer, quotes via SingleQuoteFixer, etc.).

phpstan, rector, check-cs and the full test suite pass.

https://claude.ai/code/session_01A8hvNrf4ZxWkiEjWxecSAa

EditorConfig discovery leaked project-wide settings (indent, line ending,
quotes, final newline) into ECS, overriding the configured sets. The
method now reports a deprecation warning; configure the matching
PHP-CS-Fixer rules explicitly instead.

Removes the EditorConfig value objects, factory, the builder wiring, and
its test.

Claude-Session: https://claude.ai/code/session_01A8hvNrf4ZxWkiEjWxecSAa
@TomasVotruba
TomasVotruba merged commit 48b8df1 into main Sep 4, 2026
8 checks passed
@TomasVotruba
TomasVotruba deleted the deprecate-editorconfig branch September 4, 2026 22:03
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.

1 participant