Bug 412297

Summary: Treat pass-by-reference as variable definition
Product: [Applications] kdevelop Reporter: Vitaliy <silverunicorn2011>
Component: Language Support: PHPAssignee: kdevelop-bugs-null
Status: REPORTED ---    
Severity: wishlist    
Priority: NOR    
Version First Reported In: 5.4.1   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Vitaliy 2019-09-24 22:24:18 UTC
In PHP, when I pass a non-existent variable by reference, it comes into existence. That’s used for output-only parameters. E.g. after a call to `mysqli_stmt::bind_result`, each of its arguments becomes a variable. But KDevelop doesn’t notice that, highlighting the variable as undefined (like those were never assigned to).