From e120e064e346db63ec053fb882b818ad217df086 Mon Sep 17 00:00:00 2001 From: DerManoMann Date: Wed, 10 Jan 2024 14:49:02 +1300 Subject: [PATCH] Normalize some typehints --- src/Attributes/PathItem.php | 2 +- src/Attributes/Schema.php | 2 +- src/Attributes/Webhook.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Attributes/PathItem.php b/src/Attributes/PathItem.php index 9c715393..a946073e 100644 --- a/src/Attributes/PathItem.php +++ b/src/Attributes/PathItem.php @@ -20,7 +20,7 @@ class PathItem extends \OpenApi\Annotations\PathItem */ public function __construct( ?string $path = null, - mixed $ref = null, + string|object|null $ref = null, ?string $summary = null, ?string $description = null, ?Get $get = null, diff --git a/src/Attributes/Schema.php b/src/Attributes/Schema.php index f09c5e3c..2fa38de5 100644 --- a/src/Attributes/Schema.php +++ b/src/Attributes/Schema.php @@ -64,7 +64,7 @@ public function __construct( ?array $anyOf = null, ?array $oneOf = null, AdditionalProperties|bool|null $additionalProperties = null, - $const = Generator::UNDEFINED, + mixed $const = Generator::UNDEFINED, // annotation ?array $x = null, ?array $attachables = null diff --git a/src/Attributes/Webhook.php b/src/Attributes/Webhook.php index c759b6ef..f65a33f4 100644 --- a/src/Attributes/Webhook.php +++ b/src/Attributes/Webhook.php @@ -21,7 +21,7 @@ class Webhook extends \OpenApi\Annotations\Webhook public function __construct( ?string $webhook = null, ?string $path = null, - mixed $ref = null, + string|object|null $ref = null, ?string $summary = null, ?string $description = null, ?Get $get = null,