From 9c85a84e3c75c6c8ced36a99bc180f840145e9e9 Mon Sep 17 00:00:00 2001 From: Ousmane NDIAYE Date: Sat, 2 Mar 2019 21:07:39 +0100 Subject: [PATCH 1/2] typo ? Either I don't understand the meaning... --- DependencyInjection/Configuration.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index 3d073b0..b269e81 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -144,7 +144,7 @@ private function validateAuthenticationType(array $expected, array $actual, $typ } throw new InvalidConfigurationException(sprintf( - 'Storage type "%s" has valid keys "%s" but got "%s"', + 'Storage type "%s" has valid keys "%s" but not "%s"', $typeName, implode(', ', $expected), implode(', ', $actual) From c5859407f3db9eb76a69f12a082e4db95130bcf8 Mon Sep 17 00:00:00 2001 From: Ousmane NDIAYE Date: Wed, 20 Mar 2019 16:15:52 +0100 Subject: [PATCH 2/2] Error message enhancement Added a more explicit error message --- DependencyInjection/Configuration.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index b269e81..0d9dad5 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -144,7 +144,7 @@ private function validateAuthenticationType(array $expected, array $actual, $typ } throw new InvalidConfigurationException(sprintf( - 'Storage type "%s" has valid keys "%s" but not "%s"', + 'Storage type "%s" received invalid key "%s". Please choose one of "%s".', $typeName, implode(', ', $expected), implode(', ', $actual)