Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Check if override method does not rename parameters

Open
#233 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
php
Domain
devtools

Research direction

Open the two linked PHPStan reproductions and compare the override methods, focusing on the first parameter and the reported line 12. Trace the strict-rule check that handles method overrides, then confirm that the reproduction emits an error when the parameter is renamed.

Written by the indexing model from the issue text.

Description

repro: https://phpstan.org/r/1c91414c-7a03-437c-976a-95a28d07f919 and https://phpstan.org/r/e2b66886-71db-4a33-9c17-aee3c1f67b7d

to improve override methods checks and make refactoring/updates safer

expected result: l12 in the repro should emit phpstan error for the 1st parameter

Dominant language
PHP
Stars
711
Forks
62
Avg merge
35m
Merged PRs (30d)
4

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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 phpstan/phpstan-strict-rules

All issues in phpstan/phpstan-strict-rules

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.