Skip to content

DeclareStatement hardcodes assumption there is a single value (low priority) #178

@TysonAndre

Description

@TysonAndre

Low priority because I've never seen code like this in practice.

<?php declare(strict_types=1, ticks=1);
echo "This can be parsed\n";

This causes the parser to emit various MissingToken in the output. Running the above script with php reports no issues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue identified by VS Code Team member as probable bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions