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

Bug 334345

Summary: Code folding does not correctly work with PHPs anonymous functions.
Product: [Eclipse Project] Platform Reporter: thepixeldeveloper
Component: AntAssignee: Platform-Ant-Inbox <platform-ant-inbox>
Status: CLOSED INVALID QA Contact:
Severity: normal    
Priority: P3    
Version: 3.6   
Target Milestone: 2.0 M1   
Hardware: PC   
OS: Linux   
Whiteboard:

Description thepixeldeveloper CLA 2011-01-13 21:55:23 EST
-- Configuration Details --
Product: Eclipse 1.3.0.20100617-0520 (org.eclipse.epp.package.php.product)
Installed Features:
 org.eclipse.platform 3.6.0.v20100602-9gF78GpqFt6trOGhL60z0oEx3fz-JKNwxPY

Here's a quick example:

class Controller
{
	public function action_login()
	{
		Arr::map(function($value)
		{
			return trim($value);
		},
		$_POST);
	}
}

PDT will stop folding the code at the end of the lambda function. This causes an issue with the code browser too as it thinks class functions defined after are not inside the class.
Comment 1 thepixeldeveloper CLA 2011-01-13 22:07:37 EST
I should have updated first as this bug was fixed in that update.