From 2d824ff6d47f511987631710786b231de4028907 Mon Sep 17 00:00:00 2001 From: JD-Robbs Date: Sat, 6 Sep 2014 20:08:35 +0100 Subject: [PATCH] Double-whammy sprintf use - one with only one parameter --- src/Network/Session.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Network/Session.php b/src/Network/Session.php index b2baaf2236f..82873f8ebba 100644 --- a/src/Network/Session.php +++ b/src/Network/Session.php @@ -282,10 +282,9 @@ public function options(array $options) { foreach ($options as $setting => $value) { if (ini_set($setting, $value) === false) { - throw new \RuntimeException(sprintf( - sprintf('Unable to configure the session, setting %s failed.'), - $setting - )); + throw new \RuntimeException( + sprintf('Unable to configure the session, setting %s failed.', $setting) + ); } } }