From f33647559a9aec9597a89bc3254bd5537d4408f4 Mon Sep 17 00:00:00 2001 From: Robin Krahnen Date: Wed, 13 May 2020 09:47:41 +0200 Subject: [PATCH] optimized condition --- Classes/Validation/Validator/SettingsValidator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/Validation/Validator/SettingsValidator.php b/Classes/Validation/Validator/SettingsValidator.php index 19a6ac3..ec14fd1 100644 --- a/Classes/Validation/Validator/SettingsValidator.php +++ b/Classes/Validation/Validator/SettingsValidator.php @@ -80,7 +80,7 @@ class SettingsValidator extends AbstractValidator $validatorConfig['options'] ); - if (!$validator) { + if ($validator === null) { throw new InvalidValidationConfigurationException( \sprintf( 'Validator could not be resolved: "%s" Check your Validation.yaml',