Skip to content

Wrong variable used in parsing args #5558

@cpiber

Description

@cpiber

In

$positional_arg = null;
, a variable $positional_arg is declared, but it's never used. Instead, the code uses $positional.

Correct me if I'm wrong, but I think that code only runs fine because $positional is always set if $assoc_arg is not null. Otherwise it would output undeclared variable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions