Skip to content

Fix multiline arrays#133

Merged
duncanmcclean merged 1 commit into
masterfrom
fix-multiline
Jun 1, 2026
Merged

Fix multiline arrays#133
duncanmcclean merged 1 commit into
masterfrom
fix-multiline

Conversation

@jasonvarga
Copy link
Copy Markdown
Member

symfony/var-exporter v8.1.0 (released 2026-05-29) changed VarExporter::export() to collapse
small all-scalar nested arrays onto a single line. This broke Configurator::varExport(), which
relied on VarExporter's multiline output before passing the result through php-cs-fixer.

Fixes the issue by replacing the flat VarExporter::export() call with a small recursive helper
that always expands arrays one element per line, delegating only scalar leaves to VarExporter for
proper string escaping. The existing regex post-passes and normalization step are unchanged.

@duncanmcclean duncanmcclean merged commit b4cc6f6 into master Jun 1, 2026
9 checks passed
@duncanmcclean duncanmcclean deleted the fix-multiline branch June 1, 2026 08: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.

2 participants