Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 352855

Summary: Anonymous function syntax unknown
Product: z_Archived Reporter: Anders Lindén <anderslinden>
Component: PDTAssignee: PHP UI <php.ui-inbox>
Status: CLOSED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: euthanasia_waltz, ganoro, kalin.a
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Anders Lindén CLA 2011-07-22 08:56:42 EDT
Build Identifier: 20100617-1415

When I add this code:

$this->find('input')->each(function($element)
{
});

The IDE marks the 1st and the 2nd as having an error.

Reproducible: Always
Comment 1 Toshihiro Izumi CLA 2011-07-22 19:01:23 EDT
You need to set PHP Version (Preferences > PHP > PHP Interpreter) to "PHP 5.3".
Comment 2 Anders Lindén CLA 2011-07-23 07:39:26 EDT
Thanks for the information! So the bug is then that I can pick another php version than the last one!
Comment 3 Roy Ganor CLA 2011-07-26 08:56:13 EDT
please create another bug with a detailed workflow. I don't see where this bug is going to (we changed the default to 5.3 in PDT Indigo 3.0)
Comment 4 Kalin CLA 2011-07-27 07:30:52 EDT
No longer reproducible. Tested in PHP 5.3 project
Closing...