Bug 393732 - Parser wrongly marks any function called list() within a class
Summary: Parser wrongly marks any function called list() within a class
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: PHP (show other bugs)
Version: 5.2.1
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-01 15:49 UTC by Julio J.
Modified: 2018-06-06 06:32 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 5.3.0
Sentry Crash Report:


Attachments

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