Skip to content

Commit 1e1b121

Browse files
vincentchalamonalanpoulain
authored andcommitted
fix: CI
1 parent 563e40c commit 1e1b121

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Doctrine/Odm/Filter/SearchFilter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ private function addEqualityMatchStrategy(string $strategy, Builder $aggregation
161161
*
162162
* @throws InvalidArgumentException If strategy does not exist
163163
*/
164-
private function getEqualityMatchStrategyValue(string $strategy, string $field, mixed $value, bool $caseSensitive, ClassMetadata $metadata): Regex|string|int
164+
private function getEqualityMatchStrategyValue(string $strategy, string $field, mixed $value, bool $caseSensitive, ClassMetadata $metadata): mixed
165165
{
166166
$type = $metadata->getTypeOfField($field);
167167

src/OpenApi/Factory/OpenApiFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ private function getPaginationParameters(CollectionOperationInterface|HttpOperat
493493

494494
private function getOauthSecurityScheme(): SecurityScheme
495495
{
496-
$oauthFlow = new OAuthFlow($this->openApiOptions->getOAuthAuthorizationUrl(), $this->openApiOptions->getOAuthTokenUrl(), $this->openApiOptions->getOAuthRefreshUrl(), new \ArrayObject($this->openApiOptions->getOAuthScopes()));
496+
$oauthFlow = new OAuthFlow($this->openApiOptions->getOAuthAuthorizationUrl(), $this->openApiOptions->getOAuthTokenUrl() ?: null, $this->openApiOptions->getOAuthRefreshUrl() ?: null, new \ArrayObject($this->openApiOptions->getOAuthScopes()));
497497
$description = sprintf(
498498
'OAuth 2.0 %s Grant',
499499
strtolower(preg_replace('/[A-Z]/', ' \\0', lcfirst($this->openApiOptions->getOAuthFlow())))

0 commit comments

Comments
 (0)