mirror of
https://github.com/twigphp/Twig.git
synced 2026-10-06 03:47:04 +00:00
Deprecate calling TemplateWrapper::unwrap() without arguments as of 3.30 and list the fix in the CHANGELOG
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user