After upgrading to new alpha, had this error

Parse error: syntax error, unexpected T_FUNCTION in zzzzzzz/sites/all/modules/taxonomy_menu/taxonomy_menu.admin.inc on line 326

Comments

barrett’s picture

I don't get that error. Linting the file returns no syntax problems. I do see that 326 is using a closure though and that there's a TODO saying it only works with PHP 5.3+. Are you running a lower PHP version?

* @TODO Compatible with PHP 5.3 and more only. Find a way for 5.2 compatibility.

egarias’s picture

Thanks, we are running PHP 5.2
We'll try to update

barrett’s picture

Status: Active » Closed (works as designed)

Adding a PHP declaration to the .info file to require 5.3 or greater has been addressed in #1853824: Add PHP declaration to .info file to require PHP 5.3 +