support for class-string-map<T of Foo>
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 25/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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! 🎉
- Lenguaje dominante
- PHP
- Estrellas
- 1.5k
- Forks
- 78
- Merge medio
- 9 h 5 min
- PR fusionados (30 d)
- 5
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de phpstan/phpdoc-parser
-
Dificultad 3/5 1-2 días Aptitud para principiantes 68/100
phpstan/phpdoc-parser#317 ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
phpstan/phpdoc-parser#271 · 1 comentario · 1 reacción ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
phpstan/phpdoc-parser#219 ·
-
Extension for custom tags Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 38/100
phpstan/phpdoc-parser#178 · 1 comentario ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 42/100
phpstan/phpdoc-parser#173 · 1 comentario ·
Todos los issues de phpstan/phpdoc-parser
Issues similares
-
Admissions heading updates Abiertoa11y admissions.uiowa.edu needs grooming SiteImprove best practice
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
-
Save States Menu Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
Error on exporting the error log Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
pluginsGLPI/datainjection#673 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
octobercms/october#6130 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
getgrav/grav-plugin-form#656 ·