Comment not allowed in @phpstan-type
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 35/100
Direzione di ricerca
Start with the linked reproducer for the @phpstan-type comment syntax and trace how the phpDoc parser handles the local type alias. Confirm the expected behavior from the report: comments should be accepted without errors. Check the parser's existing tests for similar PHPDoc tags and add coverage for this reproducer.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Bug report
I'd like to add comment to local type alias (@phpstan-type) but it throws "PHPDoc tag @phpstan-type MyNumber has invalid value: Unexpected token "some", expected TOKEN_PHPDOC_EOL at offset..."
Didn't find any mention in docs that comments are not allowed.
Code snippet that reproduces the problem
https://phpstan.org/r/94564802-931b-496e-b84f-82795bd0b552
Expected output
No errors
Did PHPStan help you today? Did it make you happy in any way?
It helps every day, it's so native that I can think coding without it anymore.
- 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 ·
-
Extension for custom tags Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 38/100
phpstan/phpdoc-parser#178 · 1 commento ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 42/100
phpstan/phpdoc-parser#173 · 1 commento ·
Tutte le issue di phpstan/phpdoc-parser
Issue simili
-
priority: p3
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
googleapis/librarian#7636 ·
-
0. Needs triage bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
nextcloud/fulltextsearch#1011 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
coollabsio/coolify#11927 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100