Skip to content

[Twig] Fix truncated Twig_Tests_EnvironmentTest_Extension rename - #1016

Merged
TomasVotruba merged 1 commit into
mainfrom
twig-environment-test-extension-rename
Aug 5, 2026
Merged

[Twig] Fix truncated Twig_Tests_EnvironmentTest_Extension rename#1016
TomasVotruba merged 1 commit into
mainfrom
twig-environment-test-extension-rename

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

The underscore-to-namespace rename map maps Twig_Tests_EnvironmentTest_Extension to a truncated class name, so the renamed code points to a class that does not exist:

-'Twig_Tests_EnvironmentTest_Extension' => 'Twig\Tests\EnvironmentTest\Extensio',
+'Twig_Tests_EnvironmentTest_Extension' => 'Twig\Tests\EnvironmentTest\Extension',
-class SomeExtension extends \Twig\Tests\EnvironmentTest\Extensio
+class SomeExtension extends \Twig\Tests\EnvironmentTest\Extension

The entry was also the only one of the 184 renames missing from config/sets/twig/composer-based.php, so it is added there as well, under the same twig/twig >=1.40 constraint as the rest of the namespaced renames.

Follow-up of #1015.

@TomasVotruba
TomasVotruba merged commit 26a911e into main Aug 5, 2026
7 checks passed
@TomasVotruba
TomasVotruba deleted the twig-environment-test-extension-rename branch August 5, 2026 12:21
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.

1 participant