The doc comment class-string<TracerInterface>|Autowire at position 0 could not be parsed: Unknown type name 'class-string' at position 0 in class-string<TracerInterface>|Autowire.
Loading history...
38
* @throws InvalidArgumentException
39
*/
40
public function geDriverConfig(string $name): string|Autowire
41
{
42
if (!isset($this->config['drivers'][$name])) {
43
throw new InvalidArgumentException(
44
\sprintf('Config for trace `%s` is not defined.', $name)
45
);
46
}
47
48
$driver = $this->config['drivers'][$name];
49
50
if (!\is_string($driver) && $driver instanceof Autowire) {
51
throw new InvalidArgumentException(
52
\sprintf('Trace type value for `%s` must be a string or %s', $name, Autowire::class)