Skip to content

Internal Exception // Undefined index: scope_opener PreGetPostsSniff.php on line 314 #499

@metalandcoffee

Description

@metalandcoffee

Bug Description

The first error that occurs when I lint my functions.php is the following:

An error occurred during processing; checking has been aborted. The error message was: Undefined index: scope_opener in /.../WordPressVIPMinimum/Sniffs/Hooks/PreGetPostsSniff.php on line 314

I'm not sure what is causing this. The linting seems to still continue and the file is error heavy. But I was curious if there was any insight into why this is happening. 🤷🏾‍♀️

Error Code

Internal.Exception

Environment

Use php -v and composer show to get versions.

Question Answer
PHP version 7.2.1
PHP_CodeSniffer version 3.5.5
VIPCS version 2.1.0

Tested Against master branch?

  • I have verified the issue still exists in the master branch of VIPCS.
  • I have verified the issue still exists in the develop branch of VIPCS.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions