You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the latest version the class name was removed from the model generation with this commit 02af2a2.
I know it was not providing any useful information, but now the serializer generates two blank comment lines with extra space, which generate a phpcs warning in our project.
Versions:
Question:
Hello!
In the latest version the class name was removed from the model generation with this commit 02af2a2.
![image](https://private-user-images.githubusercontent.com/2854398/331521121-9a7111a0-0475-4412-872d-7b9b006af9c9.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk4NjU3MTksIm5iZiI6MTczOTg2NTQxOSwicGF0aCI6Ii8yODU0Mzk4LzMzMTUyMTEyMS05YTcxMTFhMC0wNDc1LTQ0MTItODcyZC03YjliMDA2YWY5YzkucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxOCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMThUMDc1NjU5WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YmFjMWMwMWZmZmVkMDFlZDIxMDc3YmRmM2FmOGYwMTgyOTVhMzQ5YmFiZTczNTIwYTg4NjIwMzVhMmIyZWU0NSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.dW7xEkXwnKhYeTPfsV-Haz-p-Kfeus8DOuUmPI2DN1Q)
I know it was not providing any useful information, but now the serializer generates two blank comment lines with extra space, which generate a phpcs warning in our project.
It is possible to change the serializer logic, if there are no short or long description in the docblock the serializer won't put an extra space? Here is the corresponding code: https://github.com/barryvdh/ReflectionDocBlock/blob/2.0.0/src/Barryvdh/Reflection/DocBlock/Serializer.php#L179
Maybe bring back the classname generation with an extra command option?
Or do you have any other suggestion? Or we just format the files after every ide helper generate?
Thanks for your help!
The text was updated successfully, but these errors were encountered: