Deprecate calling TemplateWrapper::unwrap() without arguments as of 3.30 and list the fix in the CHANGELOG

This commit is contained in:
Fabien Potencier
2026-09-25 07:33:53 +02:00
parent 9c3d58e638
commit c8d782ea0b
3 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ class TemplateWrapperTest extends TestCase
$twig = new Environment(new ArrayLoader(['index' => 'content']));
$wrapper = $twig->load('index');
$this->expectDeprecation('Since twig/twig 3.29: Calling "Twig\TemplateWrapper::unwrap()" without arguments is deprecated, pass the Twig environment instead.');
$this->expectDeprecation('Since twig/twig 3.30: Calling "Twig\TemplateWrapper::unwrap()" without arguments is deprecated, pass the Twig environment instead.');
$this->assertInstanceOf(Template::class, $wrapper->unwrap());
}