mirror of
https://github.com/twigphp/Twig.git
synced 2026-10-08 04:45:47 +00:00
added type hints
This commit is contained in:
@@ -31,7 +31,7 @@ class FileExtensionEscapingStrategy
|
||||
*
|
||||
* @return string|false The escaping strategy name to use or false to disable
|
||||
*/
|
||||
public static function guess($name)
|
||||
public static function guess(string $name)
|
||||
{
|
||||
if (\in_array(substr($name, -1), ['/', '\\'])) {
|
||||
return 'html'; // return html for directories
|
||||
|
||||
Reference in New Issue
Block a user