Commit 0d39afbb authored by Carsten  Rose's avatar Carsten Rose
Browse files

Commit for unit testing on CI - array evluation fails only on CI

parent 7f5684a6
......@@ -409,8 +409,9 @@ class Store {
$arr[$key] = \normalizer::normalize($value);
} else {
// Check of HTTP_ACCEPT_ENCODING is only to detect if phpUnit is running.
if (isset($_SERVER['HTTP_ACCEPT_ENCODING']) && !is_numeric($value)) {
throw new qfq\CodeException ("Expect type 'string'", ERROR_UNEXPECTED_TYPE);
// if (isset($_SERVER['HTTP_ACCEPT_ENCODING']) && !is_numeric($value)) {
if (!is_numeric($value)) {
throw new qfq\CodeException ("Expect type 'string' - " . print_r($arr), ERROR_UNEXPECTED_TYPE);
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment