autofix incomplete version constraints

Aperta
#309 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
php
Ambito
testing, tooling

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
PHP
Stelle
544
Fork
58
Merge medio
2g 1h
PR unite (30g)
5

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di phpstan/phpstan-phpunit

Tutte le issue di phpstan/phpstan-phpunit

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.