mirror of
https://github.com/twigphp/Twig.git
synced 2026-10-09 13:25:41 +00:00
Use PHP 8.0 functions with polyfill
This commit is contained in:
@@ -37,7 +37,7 @@ class FileExtensionEscapingStrategy
|
||||
return 'html'; // return html for directories
|
||||
}
|
||||
|
||||
if ('.twig' === substr($name, -5)) {
|
||||
if (str_ends_with($name, '.twig')) {
|
||||
$name = substr($name, 0, -5);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user