Skip to content

Commit 4c61021

Browse files
committed
Cast CURL constants to string that cause a InvalidArgumentException
1 parent ff8c0e7 commit 4c61021

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/Client.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,13 @@ public function __construct(
9494

9595
// Our parsing will fail if this is set to true.
9696
$resolver->setAllowedValues(
97-
CURLOPT_HEADER,
97+
(string)CURLOPT_HEADER,
9898
[false]
9999
);
100100

101101
// Our parsing will fail if this is set to true.
102102
$resolver->setAllowedValues(
103-
CURLOPT_RETURNTRANSFER,
103+
(string)CURLOPT_RETURNTRANSFER,
104104
[false]
105105
);
106106

0 commit comments

Comments
 (0)