Skip to content

Commit 6825833

Browse files
committed
fixed warning with PHP 5.4
1 parent 848683a commit 6825833

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Hal/Application/Config/Validator.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ public function validate(Config $config)
4040
// parameters with values
4141
$keys = ['report-html', 'report-violation', 'extensions'];
4242
foreach ($keys as $key) {
43-
if ($config->has($key) && empty($config->get($key)) || true === $config->get($key)) {
43+
$value = $config->get($key);
44+
if ($config->has($key) && empty($value) || true === $value) {
4445
throw new ConfigException(sprintf('%s option requires a value', $key));
4546
}
4647
}

0 commit comments

Comments
 (0)