fix: fix broken test after wiremock-php/wiremock-php upgrade to v2.33

cli-modification-summary
Luciano Righetti 2022-05-17 09:28:26 +02:00
parent 4575406b33
commit cea986c622
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@
"league/openapi-psr7-validator": "^0.17",
"phpunit/phpunit": "^8.5",
"psy/psysh": "@stable",
"wiremock-php/wiremock-php": "^2.32"
"wiremock-php/wiremock-php": "^2.33"
},
"suggest": {
"markstory/asset_compress": "An asset compression plugin which provides file concatenation and a flexible filter system for preprocessing and minification.",

View File

@ -76,7 +76,7 @@ trait WireMockTestTrait
$headers = $stub->getRequest()->getHeaders();
if (is_array($headers)) {
foreach ($headers as $header => $rule) {
$validator = $validator->withHeader($header, ValueMatchingStrategy::fromArray($rule));
$validator = $validator->withHeader($header, $rule);
}
}