autofix incomplete version constraints
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
Research direction
Start by reading the linked pull requests #268 and #308 in phpstan/phpstan-phpunit, then trace where incomplete version constraints are diagnosed and where autofixes are handled. The examples define the expected outcome: constraints with one- or two-part versions should be made autofixable by adding the missing components.
Written by the indexing model from the issue text.
Description
I think we could think about whether errors like
Version requirement is incomplete.
can be made autofixable...?
most obvious examples would be
- #[RequiresPhp('^8.0')]
+ #[RequiresPhp('^8.0.0')]
- #[RequiresPhp('>=8.0')]
+- #[RequiresPhp('>=8.0.0')]
- #[RequiresPhp('>=8')]
+- #[RequiresPhp('>=8.0.0')]
- #[RequiresPhpunit('>=12')]
+- #[RequiresPhpunit('>=12.0.0')]
in which the comparison operator is given, but the version is not 3 digits
see
- Dominant language
- PHP
- Stars
- 547
- Forks
- 61
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 13
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-phpunit
-
Difficulty 2/5 1-3 hours Newbie friendliness 63/100
phpstan/phpstan-phpunit#361 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
phpstan/phpstan-phpunit#321 ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
phpstan/phpstan-phpunit#299 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 52/100
phpstan/phpstan-phpunit#292 · 3 comments ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 20/100
phpstan/phpstan-phpunit#291 ·
Maintainers usually reply within 1 day
All issues in phpstan/phpstan-phpunit
Similar issues
-
bug needs grooming
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
HE-Arc/le-panier-du-coin#49 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 2 days
-
15.0
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
woocommerce/woocommerce-subscriptions-importer-exporter#298 ·