Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 319921 - PHP 5.3 anonymous function inside method break code assis
Summary: PHP 5.3 anonymous function inside method break code assis
Status: CLOSED DUPLICATE of bug 319001
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: PHP Core CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-14 16:56 EDT by Michael CLA
Modified: 2020-05-14 11:17 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael CLA 2010-07-14 16:56:35 EDT
Build Identifier: 20100617-1415

Using PHP 5.3 lambda function inside class's method break code assist for the class. (See step to reproduce)

Reproducible: Always

Steps to Reproduce:
1. Create a new file 'lambda.php'

<?php

class Klass
{
	public function A () {
		// This is a method
	}
	
	static public function B ()
	{
		// This is a static method
		
		$subB = function () {
			// This is a lambda function that break
		};
	}
	
	public function C () {
		// This is a method that dont belong in Klass
	}
	
	static public function D ()
	{
		// This is a static method that dont belong in Klass
	}
}

2. In the Outline / Project Outline you should see

public Klass
- public A()
- static public B() // lambda function inside
public C()
static public D()

3. Expected result

public Klass
- public A()
- static public B() // lambda function inside
- public C()
- static public D()
Comment 1 Zhongwei Zhao CLA 2010-07-14 23:16:31 EDT
fixed already,duplicate of bug 319001

*** This bug has been marked as a duplicate of bug 319001 ***
Comment 2 Gadi Goldbarg CLA 2010-08-26 09:05:09 EDT
[Petyo Tanchev]

Duplicate of bug 319001
Closing