Skip to content

Commit ae828bc

Browse files
authored
Merge pull request #48 from php-api-clients/fallback-to-full-schema-for-webhook-detection
2 parents 7225113 + 1c3113e commit ae828bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Generator/WebHook.php

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

123123
if (count($tmts) === 0) {
124-
return;
124+
$tmts[] = new Node\Stmt\Return_(new Node\Scalar\String_($rootNamespace . 'Schema\\' . $schemaClassNameMap[spl_object_hash($content->schema)]));
125125
}
126126

127127
$method->addStmts($tmts);

0 commit comments

Comments
 (0)