Community
Participate
Working Groups
Build Identifier: 20100917-0705 When I assign a lambda, or anonymous, function to a variable, the Syntax Checker for PHP does not accept this, and gives "syntax error, unexpected 'function'". Reproducible: Always Steps to Reproduce: 1. Assign a lambda function to a variable 2. Observe that the PHP syntax checker draws a red line under 'function' to indicate a syntax error.
Created attachment 181620 [details] Attachment showing the faulty syntax highlighting. Attachment showing the syntax coloring bug
you should set your project interpreter to PHP 5.3. Project > Properties > PHP Interpreter > Enable project specific > PHP 5.3
Verified according to Comment 2 Closing...