We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a1075a5 + 865eee9 commit b89a511Copy full SHA for b89a511
templates/php/src/Services/Service.php.twig
@@ -28,7 +28,7 @@ class {{ service.name | caseUcfirst }} extends Service
28
{
29
{% for parameter in method.parameters.all %}
30
{% if parameter.required %}
31
- if (empty(${{ parameter.name | caseCamel | escapeKeyword }})) {
+ if (!isset(${{ parameter.name | caseCamel | escapeKeyword }})) {
32
throw new {{spec.title | caseUcfirst}}Exception('Missing required parameter: "{{ parameter.name | caseCamel | escapeKeyword }}"');
33
}
34
0 commit comments