# \#laminas-code

**URL:** https://discourse.laminas.dev/tag/laminas-code/98.md

[Latest](https://discourse.laminas.dev/latest.md) · [Categories](https://discourse.laminas.dev/categories.md) · [Tags](https://discourse.laminas.dev/tags.md)

---

## [How do you migrate from laminas-code 2 to 4, wrt. annotations?](https://discourse.laminas.dev/t/how-do-you-migrate-from-laminas-code-2-to-4-wrt-annotations/2872)

<div class="topic-metadata">

**Author:** [@engelse](https://discourse.laminas.dev/u/engelse)\
**Replies:** 6\
**Last updated:** [May 5, 2022, 12:57pm UTC](https://discourse.laminas.dev/t/how-do-you-migrate-from-laminas-code-2-to-4-wrt-annotations/2872 "2022-05-05T12:57:26Z")

</div>

Hey, Good day. We currently extend the AnnotationBuilder that exists in laminas-code 2. This however breaks in laminas-code 4 as the AnnotationBuilder class is final. I updated the class to not extend AnnotationBuilder…

---

## [\[RFC\] \[laminas/laminas-code\] Add type hinting option in PropertyGenerator](https://discourse.laminas.dev/t/rfc-laminas-laminas-code-add-type-hinting-option-in-propertygenerator/2652)

<div class="topic-metadata">

**Author:** [@allansun](https://discourse.laminas.dev/u/allansun)\
**Replies:** 6\
**Last updated:** [December 14, 2021, 1:28pm UTC](https://discourse.laminas.dev/t/rfc-laminas-laminas-code-add-type-hinting-option-in-propertygenerator/2652 "2021-12-14T13:28:08Z")

</div>

I’ve been using the code generator package for over 10 years and I’m surprised to see there’s still no option to add type hinting on PropertyGenerator. In the past I just rely on DocBlock to do type hinting for generate…
