added type hints

This commit is contained in:
Fabien Potencier
2019-03-19 14:08:46 +01:00
parent 3ada819420
commit 54cec4e3b8
141 changed files with 519 additions and 860 deletions
+1 -1
View File
@@ -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