Closed Harfusha closed 1 month ago
Cake5?
Cakephp 4, sorry forgot to mention this :D
This is fixed in 5 afaik You an check if things can be backported
But it is already backported https://github.com/dereuromark/cakephp-ide-helper/pull/348/commits/e212e9f9bdb0712edd5164b2522c4abddfa1ae5f
Whats the problem then? Any idea?
And does the same happen in 5.x? Then it is maybe a phpstan Parser issue
Will try to write some tests next week for cake 4 and 5
Any update regarding this issue?
i had no time to do this. I hope i will find some time this week
$pieces = explode(' ', $tokens[$i + 2]['content']);
The Illuminator code uses basic explode() instead of more sophistacted phpstan docblock parsing This would have to be ported from the annotator code it seems.
The workaround until then seems to be to not use any whitespace, then it should work as is.
If there is still something weird, we can reopen, add more tests and hopefully another fix.
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