-
Notifications
You must be signed in to change notification settings - Fork 122
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
Added object return type support for PHP 7.2 #354
Added object return type support for PHP 7.2 #354
Conversation
Thanks! |
Hello guys, |
I woudln't know why it should stop working? |
My bad. Only the return is blank when it's an object right? |
Hello again guys, After some more tests with objects types and well, I still not getting any object to show in the generated documentation. When the object is a And when the object is one class or method's variable ( Do you get the same result parsing objects types? |
Looking at the template code it indeed looks like we're not handling "plain" object return types in a reasonable way. Having had only a quick glance, it looks like we need to make the call to @MacFJA Feel like enhancing this? |
I can take a look at it in the next few days |
Thanks a lot :) |
Thank you guys! |
PR merged. I'll add some other changes from my box and roll a new release early upcoming week. |
Thank you so much. I'll try this new release as soon as it's up. |
With this version (current HEAD of master), the output is not correct: |
Good point @jeroenrnl but I tried your fix with the last master source and the methods still broken. I think the issue is in the methods display, in the view file |
Thanks, but I didn't provide a fix :-) |
Well, I mean not "your" fix but the commit you mentioned hehe |
My bad ! |
Next try, please! |
I confirm without the debug line it's good ;) |
Yes! Works for me too! Thanks for the quick fix! |
If a method has
object
as the return type, which was introduced in PHP 7.2, the file will be omitted from the documentation.This fix simply adds
object
to the array of valid return types.