support for class-string-map<T of Foo>
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
Direzione di ricerca
Start by reviewing issue #246, PHPStan issue #9521, and the linked phpDocumentor TypeResolver issue to understand the proposed class-string-map syntax. Then examine how GenericType represents bounds and how the parser handles this syntax; done means an agreed representation and parser support that avoids a crash.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
I was investigating the option to add support for class-string-map<T of Foo> and found #246, and also https://github.com/phpstan/phpstan/issues/9521. According to @ondrejmirtes in #246 this syntax should already be supported by this library. But is it not.
I'm wondering if we should introduce the syntax, and how this would look like. I can help with the implementation in the parser. But not without an agreement on how this would work on the GenericType.
I would suggest to add a $bound type on the GenericType which is equal to the behavior on @template
This is needed to the mentioned change in phpstan and https://github.com/phpDocumentor/TypeResolver/issues/266. Support in the parser would at least prevent a crash in the parser.
Thanks for this library! 🎉
- Lingua principale
- PHP
- Stelle
- 1.5k
- Fork
- 81
- Merge medio
- 7h 46m
- PR unite (30g)
- 20
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
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à 4/5 3-5 giorni Idoneità per principianti 18/100
phpstan/phpdoc-parser#343 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
phpstan/phpdoc-parser#271 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
phpstan/phpdoc-parser#219 ·
I maintainer di solito rispondono entro 1 giorno
-
Extension for custom tagsAperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 38/100
phpstan/phpdoc-parser#178 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 42/100
phpstan/phpdoc-parser#173 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di phpstan/phpdoc-parser
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
2DAW-CarlosIII/eportfolio_g5#35 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
2DAW-CarlosIII/eportfolio_g4#33 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
2DAW-CarlosIII/eportfolio_g1#34 ·
I maintainer di solito rispondono entro 2 giorni
-
area/admin type/enhancement when/soon
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 1 giorno
-
P2 Team S Type: Infrastructure
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
google/site-kit-wp#14271 ·
I maintainer di solito rispondono entro 2 giorni