Skip to content

Skip deprecation warnings in parallel workers - #189

Merged
TomasVotruba merged 2 commits into
mainfrom
fix-333-worker-deprecation-warnings
Oct 9, 2026
Merged

TomasVotruba merged 2 commits into
mainfrom
fix-333-worker-deprecation-warnings

Conversation

@TomasVotruba

@TomasVotruba TomasVotruba commented Oct 9, 2026 •

Copy link
Copy Markdown
Member

Fixes ecsphp/ecs#333

The withPhpCsFixerSets() deprecation warning showed up repeatedly: once per parallel worker process, each of which reloads the config and re-triggers the warning.

Deprecation warnings now print only on the main command, not in spawned worker processes. A single shared helper also dedupes per process (the config file is loaded twice: container build + cache hash), and the same guard is applied to the sibling withEditorConfig() and withRealPathReporting() deprecations.

@TomasVotruba
TomasVotruba merged commit c6d5982 into main Oct 9, 2026
21 checks passed
@TomasVotruba
TomasVotruba deleted the fix-333-worker-deprecation-warnings branch October 9, 2026 19:02
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.

Dupplicated deprecation displayed on withPhpCsFixerSets configuration method since version 13.3.3

1 participant