Deprecate FileSystem::normalize()

This commit is contained in:
Giuseppe Criscione 2020-11-04 15:54:18 +01:00
parent af878bdb67
commit e0c1b2df03

View File

@ -430,9 +430,12 @@ class FileSystem
/**
* Return a path with a single trailing slash
*
* @deprecated
*/
public static function normalize(string $path): string
{
trigger_error(static::class . '::normalize($path) is deprecated since Formwork 1.10.0, use ' . static::class . '::normalizePath($path . DS) instead', E_USER_DEPRECATED);
return static::normalizePath($path . DS);
}