Skip to content

Code Completion for PHP is not pulling correct phpdoc formats #1287

@dl748

Description

@dl748

Looking at

CodeLite/PHPDocComment.cpp

static wxRegEx reVarType2(wxT("@(var|variable)[ \t]+([$]{1}[\a-zA-Z0-9_]*)[ \t]+([\a-zA-Z0-9_]+)"));

looks like it taking the format

@var $variable type

but phpdoc format is

@var type $variable

https://phpdoc.org/docs/latest/references/phpdoc/tags/var.html

This makes it hard for the code completer to work with existing code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions