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

Bug 370066

Summary: trait proposal
Product: z_Archived Reporter: itay friedman <itay.f>
Component: PDTAssignee: PHP Core <php.core-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: ganoro, jacek.pospychala, silviya
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
example test jacek.pospychala: iplog+

Description itay friedman CLA 2012-01-29 08:38:31 EST
Created attachment 210243 [details]
example test

traits aren't proposed in a class use... statement

example test attached produces:

junit.framework.AssertionFailedError: 
EXPECTED COMPLETIONS LIST:
-----------------------------
type(TESTA)
type(TESTB)

ACTUAL COMPLETIONS LIST:
-----------------------------
Comment 1 Roy Ganor CLA 2012-02-01 06:47:41 EST
I think that this is the bug:

<?php
namespace One {
	trait Dtest {
		function foo1() {
			echo 44;
		}
	}
	class Agree {
		use D;
	}
	function funky(){
		return 0;
	}
}
namespace foo {
use One;

class B {
	use Dte|
}

}
?>

The given example is a simple (not php 5.4 related)
Comment 2 Roy Ganor CLA 2012-02-01 07:07:34 EST
please disregard my last comment it's related to another issue
Comment 3 Zhongwei Zhao CLA 2012-02-06 23:00:05 EST
fixed
Comment 4 Sylvia Tancheva CLA 2012-07-06 10:23:53 EDT
Verified. Closing
Ilina Stefanova