10000 "=null" on method parameter is not present in EnhancedProxy generated class · Issue #7 · schmittjoh/cg-library · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

"=null" on method parameter is not present in EnhancedProxy generated class #7

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

Open
bdmu opened this issue Sep 21, 2012 · 2 comments
Open

Comments

@bdmu
Copy link
bdmu commented Sep 21, 2012

Hello,

I created a Symfony 2.1 Controller Action with the following method signature:

public function modifierAction(Request $request, $id, Boutique $boutique = null , $categorieId)

but in the generated EnhancedProxy through CG Library, it is translated in

public function modifierAction(\Symfony\Component\HttpFoundation\Request $request, $id, \MyBundle\Boutique $boutique, $categorieId)

so the "= null" is lost.

would it be possible to get the "= null" in the EnhancedProxy class so the method signature are really the identical ?

Best regards,
Christophe

@Ocramius
Copy link
Contributor

@bdmu does the same happen when the last parameter is optional? Because your current use case is invalid

@nick4fake
Copy link

Why the hell is it invalid? This is perfectly correct example of code.

< 474E a rel="nofollow" class="btn btn-primary" data-hydro-click="{"event_type":"authentication.click","payload":{"location_in_page":"signed out comment","repository_id":2381985,"auth_type":"SIGN_UP","originating_url":"https://github.com/schmittjoh/cg-library/issues/7","user_id":null}}" data-hydro-click-hmac="e82c36b3699257b02862b79d2ad3ab2863f4834912c7dbcc76c7d5e6855766f4" href="/join?source=comment-repo">Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
0