From 017994537c8776608df41080e151c2122a487928 Mon Sep 17 00:00:00 2001 From: Nathan Robertson Date: Wed, 8 Jul 2026 13:59:20 +1000 Subject: [PATCH] Fix regressions in coding style PR --- src/Auth/Source/SQL2.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Auth/Source/SQL2.php b/src/Auth/Source/SQL2.php index 0f57769..f88e645 100644 --- a/src/Auth/Source/SQL2.php +++ b/src/Auth/Source/SQL2.php @@ -123,7 +123,7 @@ public function __construct(array $info, array $config) throw new Exception(sprintf( 'Expected parameter \'%s\' for authentication source %s to be a string. ' . 'Instead it was: %s', - $dbname, + $param, $this->authId, var_export($config[$param], true), )); @@ -177,7 +177,7 @@ public function __construct(array $info, array $config) if (!is_array($authQueryConfig)) { throw new Exception(sprintf( 'Each entry in the %s \'auth_queries\' parameter for authentication source ' - . '\'%s\' is expected to be an array. Instead it was: %s' . + . '\'%s\' is expected to be an array. Instead it was: %s', $authQueryName, $this->authId, var_export($authQueryConfig, true), @@ -188,8 +188,8 @@ public function __construct(array $info, array $config) if (!array_key_exists($param, $authQueryConfig)) { throw new Exception(sprintf( 'Auth query %s is missing required attribute \'%s\' for authentication source \'%s\'', - $param, $authQueryName, + $param, $this->authId, )); } @@ -279,7 +279,7 @@ public function __construct(array $info, array $config) if (!is_array($attrQueryConfig)) { throw new Exception(sprintf( '\'attr_queries\' parameter for authentication source \'%s\'' - . ' is expected to be an array. Instead it was: %s' . + . ' is expected to be an array. Instead it was: %s', $this->authId, var_export($attrQueryConfig, true), ));