Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
typo3
qfq
Commits
0d39afbb
Commit
0d39afbb
authored
Feb 11, 2017
by
Carsten Rose
Browse files
Commit for unit testing on CI - array evluation fails only on CI
parent
7f5684a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
extension/qfq/qfq/store/Store.php
View file @
0d39afbb
...
...
@@ -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
);
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment