Skip to content

Commit 1c3113e

Browse files
committed
Fallback to full schema for webhook detection
1 parent 7225113 commit 1c3113e

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)