function MapParser::validateKeyValuePair
1 call to MapParser::validateKeyValuePair()
- MapParser::parse in vendor/
open-telemetry/ sdk/ Common/ Configuration/ Parser/ MapParser.php
File
-
vendor/
open-telemetry/ sdk/ Common/ Configuration/ Parser/ MapParser.php, line 36
Class
Namespace
OpenTelemetry\SDK\Common\Configuration\ParserCode
private static function validateKeyValuePair(string $pair) {
if (!str_contains($pair, self::KEY_VALUE_SEPARATOR)) {
throw new InvalidArgumentException(sprintf('Key-Value pair "%s" does not contain separator "%s"', $pair, self::KEY_VALUE_SEPARATOR));
}
}