Skip to content

Fatal error from WordPressVIPMinimum\Sniffs\Security\T_PROPERTY #52

@paulschreiber

Description

@paulschreiber

Describe the bug

Starting this week, the action is producing this error on all checks:

Fatal error: Uncaught Error: Undefined constant "WordPressVIPMinimum\Sniffs\Security\T_PROPERTY" in /github/home/.composer/vendor/automattic/vipwpcs/WordPressVIPMinimum/Sniffs/Security/UnderscorejsSniff.php:57

Steps to Reproduce

Dependabot created unrelated updates. PHPCS checks are failing.

Example repo: https://github.com/techmatters/bd4d-plugin
Example PR: techmatters/bd4d-plugin#282
Example job: https://github.com/techmatters/bd4d-plugin/actions/runs/17731004470/job/50381996501?pr=282

Screenshots, screen recording, code snippet

GitHub workflow:

name: WPCS check

on: pull_request

jobs:
  phpcs:
      name: WPCS
      runs-on: ubuntu-latest
      steps:
        - uses: actions/checkout@v5
        - name: WPCS check
          uses: 10up/wpcs-action@stable
          with:
            enable_warnings: true
            standard: 'WordPress-VIP-Go'
            use_local_config: true

Environment information

GitHub CI with ubuntu-latest runner

WordPress information

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is neededneeds:engineeringThis requires engineering to resolve.

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions