Skip to content

Commit

Permalink
Fix "Fixed deprecation warning in node test server" (#2638)
Browse files Browse the repository at this point in the history
* Fix "Fixed deprecation warning in node test server

* Ignore PHPStan error after review
  • Loading branch information
guilliamxavier committed May 17, 2020
1 parent aab4ebd commit 351a213
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions phpstan-baseline.neon
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/server.js
Expand Up @@ -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) {
Expand Down

0 comments on commit 351a213

Please sign in to comment.