Skip to content

Commit 77b870b

Browse files
authored
Merge pull request #46 from php-api-clients/dont-create-empty-webhook-events
2 parents 5f9af53 + 99153bd commit 77b870b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

openapi-client.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#spec: https://raw.githubusercontent.com/octokit/webhooks/openapi/payload-schemas/openapi-schema.yml
2-
spec: https://raw.githubusercontent.com/github/rest-api-description/main/descriptions/api.github.com/api.github.com.yaml
1+
spec: https://raw.githubusercontent.com/octokit/webhooks/openapi/payload-schemas/openapi-schema.yml
2+
#spec: https://raw.githubusercontent.com/github/rest-api-description/main/descriptions/api.github.com/api.github.com.yaml
33
namespace: ApiClients\Client\Github
44
destination: generated

src/Generator/WebHook.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public static function generate(string $path, string $namespace, string $baseNam
7878
}
7979

8080
if (count($tmts) === 0) {
81-
$tmts[] = new Node\Stmt\Return_(new Node\Scalar\String_('TODO: Implement this'));
81+
return;
8282
}
8383

8484
$method->addStmts($tmts);

0 commit comments

Comments
 (0)