Syntax error fixed for current php version