Skip to content

Commit d1f6807

Browse files
committed
fix: sonar
1 parent 03caa96 commit d1f6807

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/DependencyInjection/PimcoreGenericDataIndexExtension.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,13 +124,18 @@ private function mergeConfig(array $default, array $custom): array
124124
return $default;
125125
}
126126

127+
/**
128+
* @throws InvalidArgumentException
129+
*/
127130
private function getParsedConfig(string $fileLocation): array
128131
{
129132
try {
130133
return Yaml::parseFile($fileLocation);
131134
} catch (ParseException $e) {
132135
throw new InvalidArgumentException(
133-
sprintf('The file "%s" does not contain valid YAML.', $fileLocation), 0, $e
136+
sprintf('The file "%s" does not contain valid YAML.', $fileLocation),
137+
0,
138+
$e
134139
);
135140
}
136141
}

0 commit comments

Comments
 (0)