Skip to content

Check for RestrictedVariables wrong #568

@kkmuffme

Description

@kkmuffme

e.g. WordPressVIPMinimum.Variables.RestrictedVariables.session___SESSION
will trigger for code like:

// dont cache it if we have an active PHP session
if ( isset( $_SESSION ) ) {
	$cache = false;
}

which doesn't make sense, as it's not even being used.
Afaik WP PHPCS had the same issue, but they fixed it already quite some time ago

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions