From cd583dcdf2e8ac5ff28029be755692f01973de84 Mon Sep 17 00:00:00 2001 From: Guilliam Xavier Date: Wed, 13 May 2020 11:13:50 +0200 Subject: [PATCH 1/2] Fix "Fixed deprecation warning in node test server --- tests/server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/server.js b/tests/server.js index 8e2ab249d..f6c336a5a 100644 --- a/tests/server.js +++ b/tests/server.js @@ -178,7 +178,7 @@ var GuzzleServer = function(port, log) { that.responses = JSON.parse(request.body); for (var i = 0; i < that.responses.length; i++) { if (that.responses[i].body) { - that.responses[i].body = new Buffer.from(that.responses[i].body, 'base64'); + that.responses[i].body = Buffer.from(that.responses[i].body, 'base64'); } } if (that.log) { From 40ab3d9b621a53b195464b9150e4426ef9ea02b4 Mon Sep 17 00:00:00 2001 From: Guilliam Xavier Date: Sun, 17 May 2020 11:27:47 +0200 Subject: [PATCH 2/2] Ignore PHPStan error after review --- phpstan-baseline.neon | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index dc5180f7f..506d060d1 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -495,6 +495,11 @@ parameters: count: 1 path: src/Handler/CurlFactory.php + - + message: "#^Parameter \\#1 \\$filename of function is_dir expects string, string\\|false given\\.$#" + count: 1 + path: src/Handler/CurlFactory.php + - message: "#^Method GuzzleHttp\\\\Handler\\\\CurlFactory\\:\\:retryFailedRewind\\(\\) has no return typehint specified\\.$#" count: 1