Skip to content

Commit b0afc78

Browse files
committed
add mixed as type
1 parent 5e49bed commit b0afc78

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/RouteDescriber/FosRestDescriber.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public function describe(OA\OpenApi $api, Route $route, \ReflectionMethod $refle
8787
/**
8888
* @param mixed $requirements Value to retrieve a pattern from
8989
*/
90-
private function getPattern($requirements): ?string
90+
private function getPattern(mixed $requirements): ?string
9191
{
9292
if (\is_array($requirements) && isset($requirements['rule'])) {
9393
return (string) $requirements['rule'];
@@ -107,7 +107,7 @@ private function getPattern($requirements): ?string
107107
/**
108108
* @param mixed $requirements Value to retrieve a format from
109109
*/
110-
private function getFormat($requirements): ?string
110+
private function getFormat(mixed $requirements): ?string
111111
{
112112
if ($requirements instanceof Constraint && !$requirements instanceof Regex) {
113113
if ($requirements instanceof DateTime) {
@@ -136,7 +136,7 @@ private function getFormat($requirements): ?string
136136
*
137137
* @return mixed[]|null
138138
*/
139-
private function getEnum($requirements, \ReflectionMethod $reflectionMethod): ?array
139+
private function getEnum(mixed $requirements, \ReflectionMethod $reflectionMethod): ?array
140140
{
141141
if (!($requirements instanceof Choice)) {
142142
return null;

0 commit comments

Comments
 (0)