diff --git a/tests/Stripe/HttpClient/CurlClientTest.php b/tests/Stripe/HttpClient/CurlClientTest.php index 3479627cc..5bd714c56 100644 --- a/tests/Stripe/HttpClient/CurlClientTest.php +++ b/tests/Stripe/HttpClient/CurlClientTest.php @@ -147,7 +147,7 @@ public function testDefaultOptions() // make sure closure-based options work properly, including argument passing $ref = null; $withClosure = new CurlClient(static function ($method, $absUrl, $headers, $params, $hasFile) use (&$ref) { - $ref = \func_get_args(); + $ref = [$method, $absUrl, $headers, $params, $hasFile]; return []; });