-
-
Notifications
You must be signed in to change notification settings - Fork 585
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
[Annotation] Added the ability to set the type when using @VirtualProperty #69
Conversation
Wouldn't it be better to use the |
I don't know. I talked about that in the discussion nelmio/NelmioApiDocBundle#161 but I thought you guys didn't see it. @schmittjoh Do you prefer the use of the |
Yeah, using the @type annotation is more consistent with all the other On Thu, Mar 28, 2013 at 2:51 PM, Pierre-Yves LEBECQ <
|
That was easier than I though this way. |
Could you add a small test-case? Just so that we avoid regressions later. |
I added a test case but there is something odd : adding a new virtual property in |
Did you run the test-case before you added the new property and was it On Thu, Mar 28, 2013 at 4:31 PM, Pierre-Yves LEBECQ <
|
Yes. |
Must be some weird PHP behavior, but as long as there is no explicit order requested, it's basically undefined; so, it should not bother us too much. I've merged the changes in. |
Thanks. |
As discussed in nelmio/NelmioApiDocBundle#161, I added the ability to force the type of a virtual property when using the
@VirtualProperty
annotation.Comments are always welcome :)