From b0afc785c3fb7e2d732a0461cdf1326998760086 Mon Sep 17 00:00:00 2001 From: djordy Date: Sat, 18 Jan 2025 23:12:18 +0100 Subject: [PATCH] add mixed as type --- src/RouteDescriber/FosRestDescriber.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/RouteDescriber/FosRestDescriber.php b/src/RouteDescriber/FosRestDescriber.php index b8ccb244a..b943b5a1b 100644 --- a/src/RouteDescriber/FosRestDescriber.php +++ b/src/RouteDescriber/FosRestDescriber.php @@ -87,7 +87,7 @@ public function describe(OA\OpenApi $api, Route $route, \ReflectionMethod $refle /** * @param mixed $requirements Value to retrieve a pattern from */ - private function getPattern($requirements): ?string + private function getPattern(mixed $requirements): ?string { if (\is_array($requirements) && isset($requirements['rule'])) { return (string) $requirements['rule']; @@ -107,7 +107,7 @@ private function getPattern($requirements): ?string /** * @param mixed $requirements Value to retrieve a format from */ - private function getFormat($requirements): ?string + private function getFormat(mixed $requirements): ?string { if ($requirements instanceof Constraint && !$requirements instanceof Regex) { if ($requirements instanceof DateTime) { @@ -136,7 +136,7 @@ private function getFormat($requirements): ?string * * @return mixed[]|null */ - private function getEnum($requirements, \ReflectionMethod $reflectionMethod): ?array + private function getEnum(mixed $requirements, \ReflectionMethod $reflectionMethod): ?array { if (!($requirements instanceof Choice)) { return null;