We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 848683a commit 6825833Copy full SHA for 6825833
src/Hal/Application/Config/Validator.php
@@ -40,7 +40,8 @@ public function validate(Config $config)
40
// parameters with values
41
$keys = ['report-html', 'report-violation', 'extensions'];
42
foreach ($keys as $key) {
43
- if ($config->has($key) && empty($config->get($key)) || true === $config->get($key)) {
+ $value = $config->get($key);
44
+ if ($config->has($key) && empty($value) || true === $value) {
45
throw new ConfigException(sprintf('%s option requires a value', $key));
46
}
47
0 commit comments