Skip to content

Commit

Permalink
fix styles
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedash95 committed Oct 1, 2022
1 parent 38583f0 commit 18d7317
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Reflection/ParametersAcceptorSelector.php
Expand Up @@ -724,13 +724,13 @@ private static function getCurlOptValueType(int $curlOpt): ?Type
}

$arrayOrStringConstants = [
'CURLOPT_POSTFIELDS',
'CURLOPT_POSTFIELDS',
];
foreach ($arrayOrStringConstants as $constName) {
if (defined($constName) && constant($constName) === $curlOpt) {
return TypeCombinator::union(
new StringType(),
new ArrayType(new MixedType(), new MixedType())
new ArrayType(new MixedType(), new MixedType()),
);
}
}
Expand Down

0 comments on commit 18d7317

Please sign in to comment.