Skip to content

#475 - Generic transformers: restore, deprecated, the former names of the dashed transformer codes and contextual options - #476

Merged
njoubert-cleverage merged 1 commit into
mainfrom
475
Nov 6, 2026
Merged

njoubert-cleverage merged 1 commit into
mainfrom
475

Conversation

@njoubert-cleverage

@njoubert-cleverage njoubert-cleverage commented Nov 6, 2026 •

Copy link
Copy Markdown
Member

Description

Fixes #475:

  • GenericTransformer applies again the normalization of 5.8 (a dash replaced by an underscore when the key has no underscore and its underscore form is not written):
    • a transformer code not registered with dashes but registered with underscores (array-first) is replaced by this code, with a deprecation (since 5.10);
    • a dashed contextual option (the-prefix) also accepts its underscore name as option and as placeholder ({{ the_prefix }}), with a deprecation; the dashed form wins when both are given;
  • documentation of the generic transformers and UPGRADE (Dashes in the generic transformers).

Checked locally: highest dependencies (PHP 8.5.12), with pcov coverage: all tests OK, no risky; PHPStan, PHP-CS-Fixer and Rector OK. The reproductions (array-first, the_prefix) give again "ABC" / "P-abc" in the demo project, with the deprecations.

Requirements

  • Documentation updates
    • Reference
    • Cookbooks
    • Changelog
  • Unit tests

Breaking changes

None: restores configurations working in 5.8 (deprecated).

🤖 Generated with Claude Code

… the dashed transformer codes and contextual options

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@njoubert-cleverage
njoubert-cleverage merged commit 913a4c1 into main Nov 6, 2026
17 checks passed
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.

Generic transformers: the former names of the dashed transformer codes and contextual options no longer work since 5.9

1 participant