@internal
since Twig 3.9
function twig_matches(string $regexp, ?string $str) { trigger_deprecation('twig/twig', '3.9', 'Using the internal "%s" function is deprecated.', __FUNCTION__); return CoreExtension::matches($regexp, $str); }