Skip to content

Add validUndefinedVariableNamesInFileScope #243

Description

@andrewnicols

Where a variable is available within the File scope, it will not be available within a function scope without the use of global $varname;.

At the moment it's possible to either set:

  • validUndefinedVariableNames, but this will incorrectly apply within function scope where the variable is not available to be used; or
  • allowUndefinedVariablesInFileScope, but this is an on/off value and may not be accurate.

It should be possible to define which variables are allowed to be used within the file 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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions