Skip to content

single inner-statements has no scope #9

Description

@bass3l

any single inner-statement like this

if($something)
    int $iAmInASingleIf2;

will have no scope and the variable $iAmInASingleIf2 will be declared in the parent scope as the if statement.
note: the scope is created when a '{' is encountered, hence the if has no scope

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions