Use PHP 8.0 functions with polyfill

This commit is contained in:
Jérôme Tamarelle
2023-10-08 16:53:31 +02:00
parent 2d37866aa2
commit 1d5c09285f
11 changed files with 20 additions and 19 deletions
+1 -1
View File
@@ -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);
}