Skip to content

Commit 6440de6

Browse files
committed
Merge branch '4.4' into 5.0
* 4.4: Tweak the code to avoid fabbot false positives
2 parents 68b0014 + c3b8496 commit 6440de6

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
@@ -150,7 +150,7 @@ protected function getConstructor(Definition $definition, bool $required)
150150
throw new RuntimeException(sprintf('Invalid service "%s": class "%s" does not exist.', $this->currentId, $class));
151151
}
152152
} catch (\ReflectionException $e) {
153-
throw new RuntimeException(sprintf('Invalid service "%s": %s.', $this->currentId, lcfirst(rtrim($e->getMessage(), '.'))));
153+
throw new RuntimeException(sprintf('Invalid service "%s": '.lcfirst($e->getMessage()), $this->currentId));
154154
}
155155
if (!$r = $r->getConstructor()) {
156156
if ($required) {

Loader/YamlFileLoader.php

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

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

0 commit comments

Comments
 (0)