Skip to content

Commit c3b8496

Browse files
committed
Merge branch '3.4' into 4.4
* 3.4: Tweak the code to avoid fabbot false positives
2 parents caa124e + b689f6b commit c3b8496

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Compiler/AbstractRecursivePass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ protected function getConstructor(Definition $definition, $required)
153153
throw new RuntimeException(sprintf('Invalid service "%s": class "%s" does not exist.', $this->currentId, $class));
154154
}
155155
} catch (\ReflectionException $e) {
156-
throw new RuntimeException(sprintf('Invalid service "%s": %s.', $this->currentId, lcfirst(rtrim($e->getMessage(), '.'))));
156+
throw new RuntimeException(sprintf('Invalid service "%s": '.lcfirst($e->getMessage()), $this->currentId));
157157
}
158158
if (!$r = $r->getConstructor()) {
159159
if ($required) {

Loader/YamlFileLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,7 @@ protected function loadFile($file)
690690
try {
691691
$configuration = $this->yamlParser->parseFile($file, Yaml::PARSE_CONSTANT | Yaml::PARSE_CUSTOM_TAGS);
692692
} catch (ParseException $e) {
693-
throw new InvalidArgumentException(sprintf('The file "%s" does not contain valid YAML: "%s".', $file, $e->getMessage()), 0, $e);
693+
throw new InvalidArgumentException(sprintf('The file "%s" does not contain valid YAML: '.$e->getMessage(), $file), 0, $e);
694694
}
695695

696696
return $this->validate($configuration, $file);

0 commit comments

Comments
 (0)