diff --git a/src/Generator/WebHook.php b/src/Generator/WebHook.php index 63fa0ff..442d9da 100644 --- a/src/Generator/WebHook.php +++ b/src/Generator/WebHook.php @@ -121,7 +121,7 @@ public static function generate(string $path, string $namespace, string $baseNam } if (count($tmts) === 0) { - return; + $tmts[] = new Node\Stmt\Return_(new Node\Scalar\String_($rootNamespace . 'Schema\\' . $schemaClassNameMap[spl_object_hash($content->schema)])); } $method->addStmts($tmts);