Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: for laravel-ide-helper's 1505 issue; #16

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

olexoliinyk0
Copy link

The problem

Param's generic type and description cancel out one another which lose description in the end.


This should fix barryvdh/laravel-ide-helper#1505

the problem: param's generic type and description cancel out one another which looses description;
@mfn
Copy link

mfn commented Feb 3, 2024

Can you make a test covering this change?

@olexoliinyk0
Copy link
Author

@mfn Added test data cases. It actually works as expected without changes if there's no blank space between generics types, eg in arrayGenericsNoSpaceDescription data case:

@param array<int,string> $noSpace This will work OK without this PR
@param array<int, string> $withSpace This will work OK after this PR

@mfn
Copy link

mfn commented Feb 4, 2024

I never seen/worked with this code. Do you know why the split limit is needed at all? 🤔

@olexoliinyk0
Copy link
Author

olexoliinyk0 commented Feb 4, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants