diff --git a/app/views/admin/configuration/type-edit.php b/app/views/admin/configuration/type-edit.php index 9fddb454f0a2c655ca85d36a5d93951d733c673f..1cec3f094a819e7cd4ab85b4d8126644f6cd487b 100644 --- a/app/views/admin/configuration/type-edit.php +++ b/app/views/admin/configuration/type-edit.php @@ -16,7 +16,7 @@ <input name="value" type="number" id="item-value" value="<?= htmlReady($value) ?>"> <? elseif ($type === 'array') : ?> - <?php $v = version_compare(PHP_VERSION, '5.4.0', '>=') ? json_encode($value, JSON_UNESCAPED_UNICODE) : json_encode($value) ?> + <?php $v = json_encode($value, JSON_UNESCAPED_UNICODE) ?> <textarea cols="80" rows="5" name="value" id="item-value"><?= htmlReady($v, true, true) ?></textarea> <? elseif ($type === 'i18n'): ?> <?= I18N::textarea('value', $value, [ diff --git a/tests/unit/_bootstrap.php b/tests/unit/_bootstrap.php index 87dedca7c0f23d181b8656f06728d9f88b597051..b15eeb00d7df91c6638123601a64e3df19651d79 100644 --- a/tests/unit/_bootstrap.php +++ b/tests/unit/_bootstrap.php @@ -21,10 +21,7 @@ // SOFTWARE. // set error reporting -error_reporting(E_ALL & ~E_NOTICE); -if (version_compare(phpversion(), '5.4', '>=')) { - error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT); -} +error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED); // set include path $inc_path = ini_get('include_path');