Skip to content

Commit 1fb80b1

Browse files
committed
fix(metadata): fix types due to typeDeclarations: true
1 parent 46c4e25 commit 1fb80b1

File tree

10 files changed

+52
-52
lines changed

10 files changed

+52
-52
lines changed

src/Metadata/Delete.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ final class Delete extends HttpOperation implements DeleteOperationInterface
2323
public function __construct(
2424
?string $uriTemplate = null,
2525
?array $types = null,
26-
$formats = null,
26+
array|string|null $formats = null,
2727
$inputFormats = null,
2828
$outputFormats = null,
2929
$uriVariables = null,
@@ -35,7 +35,7 @@ public function __construct(
3535
?bool $stateless = null,
3636
?string $sunset = null,
3737
?string $acceptPatch = null,
38-
$status = null,
38+
string|int|null $status = null,
3939
?string $host = null,
4040
?array $schemes = null,
4141
?string $condition = null,
@@ -76,8 +76,8 @@ public function __construct(
7676
?string $deprecationReason = null,
7777
?array $filters = null,
7878
?array $validationContext = null,
79-
?array $input = null,
80-
?array $output = null,
79+
?string $input = null,
80+
string|bool|null $output = null,
8181
$mercure = null,
8282
$messenger = null,
8383
?int $urlGenerationStrategy = null,
@@ -91,8 +91,8 @@ public function __construct(
9191
?bool $forceEager = null,
9292
?int $priority = null,
9393
?string $name = null,
94-
?int $provider = null,
95-
?string $processor = null,
94+
array|string|callable|int|null $provider = null,
95+
array|string|callable|int|null $processor = null,
9696
?OptionsInterface $stateOptions = null,
9797
array|Parameters|null $parameters = null,
9898
mixed $rules = null,

src/Metadata/Error.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ final class Error extends HttpOperation
2323
public function __construct(
2424
?string $uriTemplate = null,
2525
?array $types = null,
26-
?array $formats = null,
26+
array|string|null $formats = null,
2727
$inputFormats = null,
2828
$outputFormats = null,
2929
$uriVariables = null,
@@ -35,7 +35,7 @@ public function __construct(
3535
?bool $stateless = null,
3636
?string $sunset = null,
3737
?string $acceptPatch = null,
38-
?string $status = null,
38+
string|int|null $status = null,
3939
?string $host = null,
4040
?array $schemes = null,
4141
?string $condition = null,
@@ -76,8 +76,8 @@ public function __construct(
7676
?string $deprecationReason = null,
7777
?array $filters = null,
7878
?array $validationContext = null,
79-
?array $input = null,
80-
?array $output = null,
79+
?string $input = null,
80+
string|bool|null $output = null,
8181
$mercure = null,
8282
$messenger = null,
8383
?int $urlGenerationStrategy = null,
@@ -91,8 +91,8 @@ public function __construct(
9191
?bool $forceEager = null,
9292
?int $priority = null,
9393
?string $name = null,
94-
?int $provider = null,
95-
?string $processor = null,
94+
array|string|callable|int|null $provider = null,
95+
array|string|callable|int|null $processor = null,
9696
?OptionsInterface $stateOptions = null,
9797
?bool $hideHydraOperation = null,
9898
?bool $jsonStream = null,

src/Metadata/ErrorResource.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function __construct(
3636
?bool $stateless = null,
3737
?string $sunset = null,
3838
?string $acceptPatch = null,
39-
?int $status = null,
39+
string|int|null $status = null,
4040
?string $host = null,
4141
?array $schemes = null,
4242
?string $condition = null,
@@ -80,8 +80,8 @@ public function __construct(
8080
?array $exceptionToStatus = null,
8181
?bool $queryParameterValidationEnabled = null,
8282
?array $graphQlOperations = null,
83-
?array $provider = null,
84-
?array $processor = null,
83+
array|string|callable|int|null $provider = null,
84+
array|string|callable|int|null $processor = null,
8585
?OptionsInterface $stateOptions = null,
8686
?bool $jsonStream = null,
8787
array $extraProperties = [],

src/Metadata/Get.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ final class Get extends HttpOperation
2323
public function __construct(
2424
?string $uriTemplate = null,
2525
?array $types = null,
26-
?array $formats = null,
26+
array|string|null $formats = null,
2727
$inputFormats = null,
2828
$outputFormats = null,
2929
$uriVariables = null,
@@ -35,7 +35,7 @@ public function __construct(
3535
?bool $stateless = null,
3636
?string $sunset = null,
3737
?string $acceptPatch = null,
38-
?string $status = null,
38+
string|int|null $status = null,
3939
?string $host = null,
4040
?array $schemes = null,
4141
?string $condition = null,
@@ -76,8 +76,8 @@ public function __construct(
7676
?string $deprecationReason = null,
7777
?array $filters = null,
7878
?array $validationContext = null,
79-
?array $input = null,
80-
?array $output = null,
79+
?string $input = null,
80+
string|bool|null $output = null,
8181
$mercure = null,
8282
$messenger = null,
8383
?int $urlGenerationStrategy = null,
@@ -91,8 +91,8 @@ public function __construct(
9191
?bool $forceEager = null,
9292
?int $priority = null,
9393
?string $name = null,
94-
?int $provider = null,
95-
?string $processor = null,
94+
array|string|callable|int|null $provider = null,
95+
array|string|callable|int|null $processor = null,
9696
?OptionsInterface $stateOptions = null,
9797
array|Parameters|null $parameters = null,
9898
mixed $rules = null,

src/Metadata/GetCollection.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ final class GetCollection extends HttpOperation implements CollectionOperationIn
2323
public function __construct(
2424
?string $uriTemplate = null,
2525
?array $types = null,
26-
?array $formats = null,
26+
array|string|null $formats = null,
2727
$inputFormats = null,
2828
$outputFormats = null,
2929
$uriVariables = null,
@@ -35,7 +35,7 @@ public function __construct(
3535
?bool $stateless = null,
3636
?string $sunset = null,
3737
?string $acceptPatch = null,
38-
?string $status = null,
38+
string|int|null $status = null,
3939
?string $host = null,
4040
?array $schemes = null,
4141
?string $condition = null,
@@ -76,8 +76,8 @@ public function __construct(
7676
?string $deprecationReason = null,
7777
?array $filters = null,
7878
?array $validationContext = null,
79-
?array $input = null,
80-
?array $output = null,
79+
?string $input = null,
80+
string|bool|null $output = null,
8181
$mercure = null,
8282
$messenger = null,
8383
?int $urlGenerationStrategy = null,
@@ -91,8 +91,8 @@ public function __construct(
9191
?bool $forceEager = null,
9292
?int $priority = null,
9393
?string $name = null,
94-
?int $provider = null,
95-
?string $processor = null,
94+
array|string|callable|int|null $provider = null,
95+
array|string|callable|int|null $processor = null,
9696
?OptionsInterface $stateOptions = null,
9797
array|Parameters|null $parameters = null,
9898
array|string|null $rules = null,

src/Metadata/GraphQl/Operation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function __construct(
7070
?string $deprecationReason = null,
7171
?array $filters = null,
7272
?array $validationContext = null,
73-
?array $input = null,
73+
?string $input = null,
7474
$output = null,
7575
$mercure = null,
7676
$messenger = null,

src/Metadata/NotExposed.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function __construct(
3434
string $method = 'GET',
3535
?string $uriTemplate = null,
3636
?array $types = null,
37-
$formats = null,
37+
array|string|null $formats = null,
3838
$inputFormats = null,
3939
$outputFormats = null,
4040
$uriVariables = null,
@@ -46,7 +46,7 @@ public function __construct(
4646
?bool $stateless = null,
4747
?string $sunset = null,
4848
?string $acceptPatch = null,
49-
$status = 404,
49+
string|int|null $status = null,
5050
?string $host = null,
5151
?array $schemes = null,
5252
?string $condition = null,
@@ -89,8 +89,8 @@ public function __construct(
8989
?string $deprecationReason = null,
9090
?array $filters = null,
9191
?array $validationContext = null,
92-
?array $input = null,
93-
$output = false,
92+
array|string|false|null $input = null,
93+
array|string|false|null $output = false,
9494
$mercure = null,
9595
$messenger = null,
9696
?int $urlGenerationStrategy = null,
@@ -104,8 +104,8 @@ public function __construct(
104104
?bool $forceEager = null,
105105
?int $priority = null,
106106
?string $name = null,
107-
?string $provider = null,
108-
$processor = null,
107+
array|string|callable|int|null $provider = null,
108+
array|string|callable|int|null $processor = null,
109109
array $extraProperties = [],
110110
?OptionsInterface $stateOptions = null,
111111
?bool $map = null,

src/Metadata/Patch.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ final class Patch extends HttpOperation
2323
public function __construct(
2424
?string $uriTemplate = null,
2525
?array $types = null,
26-
$formats = null,
26+
array|string|null $formats = null,
2727
$inputFormats = null,
2828
$outputFormats = null,
2929
$uriVariables = null,
@@ -35,7 +35,7 @@ public function __construct(
3535
?bool $stateless = null,
3636
?string $sunset = null,
3737
?string $acceptPatch = null,
38-
$status = null,
38+
string|int|null $status = null,
3939
?string $host = null,
4040
?array $schemes = null,
4141
?string $condition = null,
@@ -76,8 +76,8 @@ public function __construct(
7676
?string $deprecationReason = null,
7777
?array $filters = null,
7878
?array $validationContext = null,
79-
?array $input = null,
80-
$output = null,
79+
?string $input = null,
80+
string|bool|null $output = null,
8181
$mercure = null,
8282
$messenger = null,
8383
?int $urlGenerationStrategy = null,
@@ -91,8 +91,8 @@ public function __construct(
9191
?bool $forceEager = null,
9292
?int $priority = null,
9393
?string $name = null,
94-
?string $provider = null,
95-
$processor = null,
94+
array|string|callable|int|null $provider = null,
95+
array|string|callable|int|null $processor = null,
9696
?OptionsInterface $stateOptions = null,
9797
array|Parameters|null $parameters = null,
9898
mixed $rules = null,

src/Metadata/Post.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ final class Post extends HttpOperation
2323
public function __construct(
2424
?string $uriTemplate = null,
2525
?array $types = null,
26-
$formats = null,
26+
array|string|null $formats = null,
2727
$inputFormats = null,
2828
$outputFormats = null,
2929
$uriVariables = null,
@@ -35,7 +35,7 @@ public function __construct(
3535
?bool $stateless = null,
3636
?string $sunset = null,
3737
?string $acceptPatch = null,
38-
$status = null,
38+
string|int|null $status = null,
3939
?string $host = null,
4040
?array $schemes = null,
4141
?string $condition = null,
@@ -76,8 +76,8 @@ public function __construct(
7676
?string $deprecationReason = null,
7777
?array $filters = null,
7878
?array $validationContext = null,
79-
?array $input = null,
80-
$output = null,
79+
?string $input = null,
80+
string|bool|null $output = null,
8181
$mercure = null,
8282
$messenger = null,
8383
?int $urlGenerationStrategy = null,
@@ -91,8 +91,8 @@ public function __construct(
9191
?bool $forceEager = null,
9292
?int $priority = null,
9393
?string $name = null,
94-
?string $provider = null,
95-
$processor = null,
94+
array|string|callable|int|null $provider = null,
95+
array|string|callable|int|null $processor = null,
9696
?OptionsInterface $stateOptions = null,
9797
array|Parameters|null $parameters = null,
9898
mixed $rules = null,

src/Metadata/Put.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ final class Put extends HttpOperation
2323
public function __construct(
2424
?string $uriTemplate = null,
2525
?array $types = null,
26-
$formats = null,
26+
array|string|null $formats = null,
2727
$inputFormats = null,
2828
$outputFormats = null,
2929
$uriVariables = null,
@@ -35,7 +35,7 @@ public function __construct(
3535
?bool $stateless = null,
3636
?string $sunset = null,
3737
?string $acceptPatch = null,
38-
$status = null,
38+
string|int|null $status = null,
3939
?string $host = null,
4040
?array $schemes = null,
4141
?string $condition = null,
@@ -76,8 +76,8 @@ public function __construct(
7676
?string $deprecationReason = null,
7777
?array $filters = null,
7878
?array $validationContext = null,
79-
?array $input = null,
80-
$output = null,
79+
?string $input = null,
80+
string|bool|null $output = null,
8181
$mercure = null,
8282
$messenger = null,
8383
?int $urlGenerationStrategy = null,
@@ -91,8 +91,8 @@ public function __construct(
9191
?bool $forceEager = null,
9292
?int $priority = null,
9393
?string $name = null,
94-
?string $provider = null,
95-
$processor = null,
94+
array|string|callable|int|null $provider = null,
95+
array|string|callable|int|null $processor = null,
9696
?OptionsInterface $stateOptions = null,
9797
array|Parameters|null $parameters = null,
9898
mixed $rules = null,

0 commit comments

Comments
 (0)