function ListParser::parse
Parameters
string|array $value:
1 call to ListParser::parse()
- Configuration::getList in vendor/
open-telemetry/ sdk/ Common/ Configuration/ Configuration.php
File
-
vendor/
open-telemetry/ sdk/ Common/ Configuration/ Parser/ ListParser.php, line 14
Class
Namespace
OpenTelemetry\SDK\Common\Configuration\ParserCode
public static function parse($value) : array {
if (is_array($value)) {
return $value;
}
if (trim($value) === '') {
return [];
}
return array_map(fn($value) => trim($value), explode(self::DEFAULT_SEPARATOR, $value));
}