Remove PHP v5.x support and add basic doc for how one may install the old version

This commit is contained in:
Zach Borboa
2021-03-17 12:19:38 -04:00
parent 8746d9a5d1
commit cc3f7bac24
40 changed files with 19 additions and 670 deletions
-8
View File
@@ -16,14 +16,6 @@ class Decoder
public static function decodeJson()
{
$args = func_get_args();
// Call json_decode() without the $options parameter in PHP
// versions less than 5.4.0 as the $options parameter was added in
// PHP version 5.4.0.
if (version_compare(PHP_VERSION, '5.4.0', '<')) {
$args = array_slice($args, 0, 3);
}
$response = call_user_func_array('json_decode', $args);
if ($response === null) {
$response = $args['0'];