Skip to content

Register the missing extra callables in MissingExtensionSuggestor - #4892

Merged
fabpot merged 2 commits into
twigphp:3.xfrom
smnandre:fix-extensions-catalog
Aug 23, 2026
Merged

Register the missing extra callables in MissingExtensionSuggestor#4892
fabpot merged 2 commits into
twigphp:3.xfrom
smnandre:fix-extensions-catalog

Conversation

@smnandre

Copy link
Copy Markdown
Contributor

Extensions.php mirrors what each twig/*-extra package declares, so MissingExtensionSuggestor can answer an unknown name with try running "composer require twig/string-extra" rather than a bare Unknown "slug" filter.

This PR adds the twelve callables missing from it:

  • html-extra: html_attr_merge and html_attr_type filters, html_cva and html_attr functions
  • intl-extra: format_list filter, language_names, script_names, country_names, locale_names, currency_names and timezone_names functions
  • string-extra: slug, plural and singular filters

ExtensionsTest checks the catalog both ways:

  • every listed name resolves on an Environment holding the extension,
  • every declared filter, function and tag is listed

@fabpot
fabpot force-pushed the fix-extensions-catalog branch from f197790 to 4212ac1 Compare August 23, 2026 07:13
@fabpot

fabpot commented Aug 23, 2026

Copy link
Copy Markdown
Contributor

Thank you @smnandre.

@fabpot
fabpot merged commit 1e239fe into twigphp:3.x Aug 23, 2026
12 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants