Skip to content

Commit ad1dc19

Browse files
committed
Merge branch '2.7' into 2.8
* 2.7: Fixes #22264 - add support for Chrome headless, see also Seldaek/monolog#966 Dont call sprintf() when no placeholders are used
2 parents 14b9d8a + 79809e8 commit ad1dc19

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Definition.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ public function setMethodCalls(array $calls = array())
379379
public function addMethodCall($method, array $arguments = array())
380380
{
381381
if (empty($method)) {
382-
throw new InvalidArgumentException(sprintf('Method name cannot be empty.'));
382+
throw new InvalidArgumentException('Method name cannot be empty.');
383383
}
384384
$this->calls[] = array($method, $arguments);
385385

Dumper/YamlDumper.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,11 @@ 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->isSynchronized(false)) {
100-
$code .= sprintf(" synchronized: true\n");
100+
$code .= " synchronized: true\n";
101101
}
102102

103103
if ($definition->isDeprecated()) {
@@ -121,7 +121,7 @@ private function addService($id, $definition)
121121
}
122122

123123
if ($definition->isLazy()) {
124-
$code .= sprintf(" lazy: true\n");
124+
$code .= " lazy: true\n";
125125
}
126126

127127
if ($definition->getFactoryMethod(false)) {

0 commit comments

Comments
 (0)