From 4c61021abbe75a560d96b9c39f606222d6982f9c Mon Sep 17 00:00:00 2001 From: Tim Goudriaan Date: Sat, 23 Nov 2019 12:05:47 +0100 Subject: [PATCH] Cast CURL constants to string that cause a InvalidArgumentException --- src/Client.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Client.php b/src/Client.php index 6b00be9..f6b844c 100644 --- a/src/Client.php +++ b/src/Client.php @@ -94,13 +94,13 @@ public function __construct( // Our parsing will fail if this is set to true. $resolver->setAllowedValues( - CURLOPT_HEADER, + (string)CURLOPT_HEADER, [false] ); // Our parsing will fail if this is set to true. $resolver->setAllowedValues( - CURLOPT_RETURNTRANSFER, + (string)CURLOPT_RETURNTRANSFER, [false] );