Skip to content

Commit 694c1a6

Browse files
committed
Merge branch '2.8' into 3.2
* 2.8: Fixes #22264 - add support for Chrome headless, see also Seldaek/monolog#966 bumped Symfony version to 2.8.20 updated VERSION for 2.8.19 updated CHANGELOG for 2.8.19 Dont call sprintf() when no placeholders are used
2 parents 923bb01 + ad1dc19 commit 694c1a6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Definition.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ public function setMethodCalls(array $calls = array())
269269
public function addMethodCall($method, array $arguments = array())
270270
{
271271
if (empty($method)) {
272-
throw new InvalidArgumentException(sprintf('Method name cannot be empty.'));
272+
throw new InvalidArgumentException('Method name cannot be empty.');
273273
}
274274
$this->calls[] = array($method, $arguments);
275275

Dumper/YamlDumper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ private function addService($id, $definition)
9393
}
9494

9595
if ($definition->isSynthetic()) {
96-
$code .= sprintf(" synthetic: true\n");
96+
$code .= " synthetic: true\n";
9797
}
9898

9999
if ($definition->isDeprecated()) {
@@ -113,7 +113,7 @@ private function addService($id, $definition)
113113
}
114114

115115
if ($definition->isLazy()) {
116-
$code .= sprintf(" lazy: true\n");
116+
$code .= " lazy: true\n";
117117
}
118118

119119
if ($definition->getArguments()) {

0 commit comments

Comments
 (0)