Skip to content

Commit 74ac40c

Browse files
committed
Fixed str_replace for PHP 8 + platinum in Utility::getClient()
1 parent e151104 commit 74ac40c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/Elasticsearch/Tests/Utility.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public static function getClient(): Client
5656
]
5757
]
5858
]);
59-
if (getenv('TEST_SUITE') === 'xpack') {
59+
if (getenv('TEST_SUITE') === 'platinum') {
6060
$clientBuilder->setSSLVerification(false);
6161
}
6262
return $clientBuilder->build();

util/YamlTests.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ public static function render(string $fileName, array $params = []): string
311311
} elseif ($value instanceof \stdClass) {
312312
$value = 'new \stdClass';
313313
}
314-
$output = str_replace($name, $value, $output);
314+
$output = str_replace($name, (string) $value, $output);
315315
}
316316
return $output;
317317
}

0 commit comments

Comments
 (0)