"New in initializers" breaks in docblock
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 42/100
Direzione di ricerca
Start with the linked PHPStan reproducer and trace how the parser handles the @method docblock syntax involving PHP 8.1 "new in initializers." Compare it with the equivalent syntax accepted in code. Done means the docblock case parses correctly and has regression coverage for the reported example.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Bug report
Since PHP 8.1, it is possible to use new as default parameters ("new in initializers" RFC).
PHPStan gets it perfectly, but things stop working once we move them to docblocks, explicitly the @method docblock (see example).
Code snippet that reproduces the problem
https://phpstan.org/r/5d0cdcbb-5c11-4483-90b0-b95986f92bc2
Expected output
Since PHPStan understands the "new in initializers" in the code, I guess that this is a missed use-case instead of an actual bug, but I didn't know where to report it.
Did PHPStan help you today? Did it make you happy in any way?
Every. single. day.
Thanks for this amazing tool!
- Lingua principale
- PHP
- Stelle
- 1.5k
- Fork
- 78
- Merge medio
- 9h 5m
- PR unite (30g)
- 5
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di phpstan/phpdoc-parser
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
phpstan/phpdoc-parser#317 ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
phpstan/phpdoc-parser#281 · 2 commenti · 1 reazione ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
phpstan/phpdoc-parser#271 · 1 commento · 1 reazione ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
phpstan/phpdoc-parser#219 ·
-
Extension for custom tags Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 38/100
phpstan/phpdoc-parser#178 · 1 commento ·
Tutte le issue di phpstan/phpdoc-parser
Issue simili
-
Admissions heading updates Apertaa11y admissions.uiowa.edu needs grooming SiteImprove best practice
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Save States Menu Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
pluginsGLPI/datainjection#673 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
octobercms/october#6130 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
getgrav/grav-plugin-form#656 ·