Skip to content

Commit 4df08b6

Browse files
committed
fix PHP deletes
1 parent 3af54e7 commit 4df08b6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,9 @@ class {{ service.name | caseUcfirst }} extends Service
2020
* @param {{ parameter.type | typeName }}${{ parameter.name | caseCamel | escapeKeyword }}
2121
{% endfor %}
2222
* @throws {{spec.title | caseUcfirst}}Exception
23-
* @return {% if method.type == 'location' %}string{% else %}array{% endif %}
24-
23+
* @return {% if (method.type == 'location') or (method.method | caseUpper == 'DELETE') %}string{% else %}array{% endif %}
2524
*/
26-
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 %}): {% if method.type == 'location' %}string{% else %}array{% endif %}
25+
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 %}): {% if (method.type == 'location') or (method.method | caseUpper == 'DELETE') %}string{% else %}array{% endif %}
2726
2827
{
2928
{% for parameter in method.parameters.all %}

0 commit comments

Comments
 (0)