eclipse - PHP Function Parameter types - Simultaneous usage of the contentType and type attributes is not supported -


i new php , battling resolve issue between function parameters of type , contenttype.

i have following code {0} i'm trying pass through id function, however, following error returned {1}

{0}

/**  * @path("/getlist")  * @param(string, query,'string')         * @return(string,'text/plain')  */  public function getlist($id)     {         ....     } 

{1} simultaneous usage of contenttype , type attributes not supported , produce error since type attribute implicitly declares application/json mime type.

i've changed following * @param(string,query,'text/plain') * @param(string,query,'string')

but change value of parameter, , not type of it.

how go in doing that?

regards

remove brace {. have given 2 braces after method

/**  * @path("/getlist")  * @param(string, query,'string')         * @return(string,'text/plain')  */  public function getlist($id)     {         ....     } 

Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -