Skip to content

Commit 134f25e

Browse files
Set strict parameter of in_array to true where possible
1 parent 04be415 commit 134f25e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CurlHttpClient.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -532,11 +532,11 @@ private function validateExtraCurlOptions(array $options): void
532532
throw new InvalidArgumentException(sprintf('Cannot set "%s" with "extra.curl", use option "%s" instead.', $constName, $curloptsToConfig[$opt]));
533533
}
534534

535-
if (\in_array($opt, $methodOpts)) {
535+
if (\in_array($opt, $methodOpts, true)) {
536536
throw new InvalidArgumentException('The HTTP method cannot be overridden using "extra.curl".');
537537
}
538538

539-
if (\in_array($opt, $curloptsToCheck)) {
539+
if (\in_array($opt, $curloptsToCheck, true)) {
540540
$constName = $this->findConstantName($opt) ?? $opt;
541541
throw new InvalidArgumentException(sprintf('Cannot set "%s" with "extra.curl".', $constName));
542542
}

0 commit comments

Comments
 (0)