PHPCS reporting error on dependent library nikic/php-parser, hamcrest/hamcrest-php

Open
#251 1 comment 0 reactions 0 assignees View on GitHub

@faisalahammad is already working on this.

Since Jul 19, 2026.

  • #271 by @faisalahammad — open

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
php
Domain
testing

Research direction

Start by running PHPCS on the repository with PHP 8.2 or newer and compare the reported errors with the attached screenshots. Then inspect how nikic/php-parser and hamcrest/hamcrest-php are declared and determine which compatible dependency updates are required; done means PHPCS runs without these dependent-library errors on supported PHP versions.

Written by the indexing model from the issue text.

Description

Dependencies

Bug report

  • Need update of dependent libraries to support php 8.2+
Replication steps
  • If we run phpcs on the repo we see the following errors
    Screenshot 2024-09-02 at 12 30 37 PM
    Screenshot 2024-09-02 at 12 30 21 PM
Expected behavior
  • support for dependent libraries for php8.2+
Dominant language
PHP
Stars
714
Forks
72
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from 10up/wp_mock

All issues in 10up/wp_mock

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.