Remove scalar typehints to support PHP5

This commit is contained in:
Alexander Nell
2020-02-25 17:48:27 +01:00
parent 29fff4e012
commit e8d2b2e81e
5 changed files with 12 additions and 12 deletions

View File

@ -244,7 +244,7 @@ abstract class FileUtil {
* @param string $path
* @return string
*/
public static function shortenPath(string $path) {
public static function shortenPath($path) {
$root = substr($path, 0, 1) === '/';
$path = str_replace(array('/', '\\'), DIRECTORY_SEPARATOR, $path);
$parts = array_filter(explode(DIRECTORY_SEPARATOR, $path), 'strlen');