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 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) {