Skip to content

Commit a1aae48

Browse files
committed
Minor fixes
1 parent 3951006 commit a1aae48

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

ClientFactory/PluginClientFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public static function createPluginClient(array $plugins, $factory, array $confi
2727
} elseif (is_callable($factory)) {
2828
$client = $factory($config);
2929
} else {
30-
throw new \RuntimeException(sprintf('Second argument to PluginClientFactory::createPluginClient must be a "%s" or a callale.', ClientFactory::class));
30+
throw new \RuntimeException(sprintf('Second argument to PluginClientFactory::createPluginClient must be a "%s" or a callable.', ClientFactory::class));
3131
}
3232

3333
return new PluginClient($client, $plugins, $pluginClientOptions);

DependencyInjection/HttplugExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ function ($id) {
251251
* @param array $config
252252
*
253253
* @return array of service ids.
254-
* */
254+
*/
255255
private function configureAutoDiscoveryClients(ContainerBuilder $container, array $config)
256256
{
257257
$serviceIds = [];

DependencyInjection/ProfilerExtension.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function load(array $config, ContainerBuilder $container, array $clientSe
4040
$pluginClientDefinition = $container->getDefinition($clientId);
4141
$serviceIdDebugPlugin = $this->registerDebugPlugin($container, $clientId);
4242

43-
$argument = $this->mergeDebugPluginArguments($pluginClientDefinition->getArgument(3), [new Reference($serviceIdDebugPlugin)]);
43+
$argument = $this->mergeDebugPluginArguments([new Reference($serviceIdDebugPlugin)], $pluginClientDefinition->getArgument(3));
4444
$pluginClientDefinition->replaceArgument(3, $argument);
4545
}
4646
}
@@ -65,12 +65,12 @@ private function registerDebugPlugin(ContainerBuilder $container, $name)
6565
}
6666

6767
/**
68-
* @param array $existing
6968
* @param array $newArgument
69+
* @param array $existing
7070
*
7171
* @return array
7272
*/
73-
private function mergeDebugPluginArguments($existing, $newArgument)
73+
private function mergeDebugPluginArguments(array $newArgument, array $existing = [])
7474
{
7575
if (empty($existing)) {
7676
$mergedArgument = ['debug_plugins' => $newArgument];

0 commit comments

Comments
 (0)