1<?php 2 3/* 4 * This file is part of Twig. 5 * 6 * (c) Fabien Potencier 7 * 8 * For the full copyright and license information, please view the LICENSE 9 * file that was distributed with this source code. 10 */ 11 12use Twig\Environment; 13use Twig\Extension\StringLoaderExtension; 14use Twig\TemplateWrapper; 15 16/** 17 * @internal 18 * 19 * @deprecated since Twig 3.9 20 */ 21function twig_template_from_string(Environment $env, $template, ?string $name = null): TemplateWrapper 22{ 23 trigger_deprecation('twig/twig', '3.9', 'Using the internal "%s" function is deprecated.', __FUNCTION__); 24 25 return StringLoaderExtension::templateFromString($env, $template, $name); 26} 27