Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 334345 - Code folding does not correctly work with PHPs anonymous functions.
Summary: Code folding does not correctly work with PHPs anonymous functions.
Status: CLOSED INVALID
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Ant (show other bugs)
Version: 3.6   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 2.0 M1   Edit
Assignee: Platform-Ant-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-13 21:55 EST by thepixeldeveloper CLA
Modified: 2011-01-13 22:07 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.