Skip to content

Commit

Permalink
Normalize some typehints (#1532)
Browse files Browse the repository at this point in the history
  • Loading branch information
DerManoMann committed Jan 10, 2024
1 parent 598958d commit f7faf23
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Attributes/PathItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/Attributes/Schema.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/Attributes/Webhook.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f7faf23

Please sign in to comment.