On a more pedantic note, I think there should be a space between the type and the variable. . `(string) $attributes`