dereuromark / cakephp-ide-helper

IDE Helper plugin for CakePHP
MIT License
182 stars 40 forks source link

Complex type, that exists in property is added again #354

Open Harfusha opened 2 weeks ago

Harfusha commented 2 weeks ago

I have this property on entity. @property array{user: int, account: string|null, newContacts: array<mixed>|null}|null $data

When i run annotator same property is added again on the end. @property array|null $data

image

dereuromark commented 2 weeks ago

Cake5?

Harfusha commented 2 weeks ago

Cakephp 4, sorry forgot to mention this :D

dereuromark commented 2 weeks ago

This is fixed in 5 afaik You an check if things can be backported

Harfusha commented 2 weeks ago

But it is already backported https://github.com/dereuromark/cakephp-ide-helper/pull/348/commits/e212e9f9bdb0712edd5164b2522c4abddfa1ae5f

dereuromark commented 2 weeks ago

Whats the problem then? Any idea?

dereuromark commented 2 weeks ago

And does the same happen in 5.x? Then it is maybe a phpstan Parser issue

Harfusha commented 2 weeks ago

Will try to write some tests next week for cake 4 and 5