Olá pessoal gostaria de resolver este erro em PHP:
Parse error: syntax error, unexpected '[', expecting ')' in /home/redec305/public_html/mcloud/core/classes/class.AJXP_Utils.php on line 1628
public function getSanitizedUrl($arr) {
$credentials = join(':', array_filter([$arr['user'], $arr['pass']]));
$hostname = join(':', array_filter([$arr['host'], $arr['port']]));
$domain = join('@', array_filter([$credentials, $hostname]));
return $arr['scheme'] . '://' . join('/', array_filter([$domain, $arr['path']]));
}