From d23adb53808b8e2da36f75bc0188546e4cbe3b45 Mon Sep 17 00:00:00 2001 From: Krystian Marcisz Date: Tue, 12 Sep 2023 16:43:42 +0200 Subject: [PATCH] Fix phpdoc for JsonSchena::setType() (#154) The type definition in `setType` method can be updated as the property itself accepts `string` too --- src/JsonSchema.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/JsonSchema.php b/src/JsonSchema.php index 5e2af72..80b4a89 100644 --- a/src/JsonSchema.php +++ b/src/JsonSchema.php @@ -648,7 +648,7 @@ public function setEnum($enum) /** @codeCoverageIgnoreEnd */ /** - * @param array $type + * @param array|string $type * @return $this * @codeCoverageIgnoreStart */