Skip to content

Commit 5ab956b

Browse files
committed
fix php templates
1 parent f37570e commit 5ab956b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/php/src/Services/Service.php.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ class {{ service.name | caseUcfirst }} extends Service
2323
*
2424
{% endif %}
2525
{% for parameter in method.parameters.all %}
26-
* @param {{ parameter.type | typeName }}${{ parameter.name | caseCamel | escapeKeyword }}
26+
* @param {{ parameter | typeName }}${{ parameter.name | caseCamel | escapeKeyword }}
2727
{% endfor %}
2828
* @throws {{spec.title | caseUcfirst}}Exception
2929
* @return {{ method | getReturn }}
3030
3131
*/
32-
public function {{ method.name | caseCamel }}({% for parameter in method.parameters.all %}{{ parameter.type | typeName }}${{ parameter.name | caseCamel | escapeKeyword }}{% if not parameter.required %} = null{% endif %}{% if not loop.last %}, {% endif %}{% endfor %}{% if 'multipart/form-data' in method.consumes %}, callable $onProgress = null{% endif %}): {{ method | getReturn }}
32+
public function {{ method.name | caseCamel }}({% for parameter in method.parameters.all %}{{ parameter | typeName }}${{ parameter.name | caseCamel | escapeKeyword }}{% if not parameter.required %} = null{% endif %}{% if not loop.last %}, {% endif %}{% endfor %}{% if 'multipart/form-data' in method.consumes %}, callable $onProgress = null{% endif %}): {{ method | getReturn }}
3333
{
3434
$path = str_replace([{% for parameter in method.parameters.path %}'{{ '{' }}{{ parameter.name | caseCamel }}{{ '}' }}'{% if not loop.last %}, {% endif %}{% endfor %}], [{% for parameter in method.parameters.path %}${{ parameter.name | caseCamel | escapeKeyword }}{% if not loop.last %}, {% endif %}{% endfor %}], '{{ method.path }}');
3535

0 commit comments

Comments
 (0)