Bug 393732

Summary: Parser wrongly marks any function called list() within a class
Product: [Applications] kdevelop Reporter: Julio J. <julioelpoeta>
Component: Language Support: PHPAssignee: kdevelop-bugs-null
Status: RESOLVED FIXED    
Severity: normal CC: pprkut
Priority: NOR    
Version First Reported In: 5.2.1   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 5.3.0
Sentry Crash Report:

Description Julio J. 2018-05-01 15:49:15 UTC
If you have a class with a function named list(), the parser marks it as wrong with the following error message:

Expected symbol "identifier" (current token: "list" ...)

It is reproducible for me on a simple class like

class A {
    public function list() {
    }
}

Changing the name makes the parser problem go away.
Comment 1 Heinz Wiesinger 2018-06-01 06:46:11 UTC
This is fixed in master already :)