Skip to content

Commit 4864707

Browse files
authored
Merge pull request #14 from simoheinonen/patch-1
Fix syntax error in example
2 parents a713a22 + 9aa6c3f commit 4864707

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ $builder->classCreatedHook = new \Swaggest\PhpCodeBuilder\JsonSchema\ClassHookCa
8080
$class->setNamespace($appNs);
8181
if ('#' === $path) {
8282
$class->setName('User'); // Class name for root schema
83-
} elseif (strpos($path, '#/definitions/') === 0)) {
83+
} elseif (strpos($path, '#/definitions/') === 0) {
8484
$class->setName(\Swaggest\PhpCodeBuilder\PhpCode::makePhpClassName(
8585
substr($path, strlen('#/definitions/'))));
8686
}

0 commit comments

Comments
 (0)