Add support to requireParentConstructorCall for indirect calls
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Start with the linked PHPStan reproduction and trace the implementation and tests for requireParentConstructorCall. Check how constructor calls through a trait method alias are represented, then add support for the indirect call and regression coverage showing the reported example is handled.
Written by the indexing model from the issue text.
Description
As originally reported in https://github.com/phpstan/phpstan/issues/9577, calling a constructor indirectly, e.g., via a trait method alias, is not supported by requireParentConstructorCall. I am opening this issue per @ondrejmirtes's request there.
Code snippet that reproduces the problem
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from phpstan/phpstan-strict-rules
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
phpstan/phpstan-strict-rules#317 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
phpstan/phpstan-strict-rules#316 · 3 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 52/100
phpstan/phpstan-strict-rules#298 · 2 comments · 1 reaction ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
phpstan/phpstan-strict-rules#289 · 1 comment ·
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 35/100
phpstan/phpstan-strict-rules#283 · 6 comments ·
All issues in phpstan/phpstan-strict-rules
Similar issues
-
type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
bug No Code Attached Yet
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
joomla/joomla-cms#48556 · 1 comment ·
Maintainers usually reply within 1 day
-
sync-en
Difficulty 1/5 Under an hour Newbie friendliness 92/100
Maintainers usually reply within 1 day
-
sync-en
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Maintainers usually reply within 3 days
-
Перевод устарел
Difficulty 1/5 1-3 hours Newbie friendliness 88/100