You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using PHP 8.1.19.
In Utils/HttpClient class send method there is assertion for resource.
curl_init returns CurlHandle class object.
So the resource check condition will always fail.
Worth to mention that initially it was used to make the soap request witch used the HttpClient for the actual request send.
Commenting that line out helped as the main purpose was to record the request for test cases.
I am not that advanced to be sure about why that assert was there in the first place. (feel free to prove me wrong if it is expected behaviour)
The fix could be the adding the early return instance of CurlHandle check right before the is_resource check
The text was updated successfully, but these errors were encountered:
skyferix
changed the title
Cassette recording with PHP 8
Curl error while recording cassette with PHP 8
May 17, 2023
Using PHP 8.1.19.
In Utils/HttpClient class send method there is assertion for resource.
curl_init returns CurlHandle class object.
So the resource check condition will always fail.
Worth to mention that initially it was used to make the soap request witch used the HttpClient for the actual request send.
Commenting that line out helped as the main purpose was to record the request for test cases.
I am not that advanced to be sure about why that assert was there in the first place. (feel free to prove me wrong if it is expected behaviour)
The fix could be the adding the early return
instance of CurlHandle
check right before theis_resource
checkThe text was updated successfully, but these errors were encountered: