mayflowergmbh/PHP_CodeBrowser — Issue #54: CLIController.php - PHP Parse error:  syntax error
Author: dferguson
Created: 2011-12-16 20:35:23+00:00
State: open

Hi Folks,

Any ideas why I'm getting this syntax error? The syntax looks fine to me. Assistance would very much be appreciated. Cheers!

Environment:
php v5.2.17
phpcb v1.0.1

Error:
php: PHP Parse error: syntax error, unexpected T_FUNCTION, expecting
')' in /usr/lib/php/PHP_CodeBrowser/CLIController.php on line 556

Related code:
$plugins = array_map(
function($class) {
return '"' . substr($class, strlen('CbError')) . '"';
},
self::getAvailablePlugins()
);