Skip to content

Discuss: Should variables be detected and highlighted? #1378

@johnstray

Description

@johnstray

Taking the following code as an example, the php variable is not detected as a variable when it resides as a function argument or inside any bracketed syntax:

$var_is_detected = ''; # < This is detected as a variable

function my_function ( $var_not_detected, $another_var_not_detected ) { 
    # These arguments are NOT detected as variables...
 }

# The value of 'id' is not detected as a variable...
$working_variable = array ( 'id' => $var_not_detected );

Is Detected = variable is highlighted
Not Detected = variable NOT highlighted

Metadata

Metadata

Assignees

No one assigned

    Labels

    big picturePolicy or high level discussionenhancementAn enhancement or new feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions