Skip to content

continue/break outside of loop/switch is not an error #3588

@luauser32167

Description

@luauser32167

No error is reported for

break;
//continue;

but php -l errors with: Fatal error: 'break' not in the 'loop' or 'switch' context...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions