mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-10-12 18:03:00 +00:00
[twitter] Update abraham/twitteroauth dependency
This commit is contained in:
parent
30445b3c85
commit
569e3f4831
167 changed files with 11848 additions and 2157 deletions
|
@ -15,9 +15,12 @@ class JsonDecoder
|
|||
*
|
||||
* @return array|object
|
||||
*/
|
||||
public static function decode($string, $asArray)
|
||||
public static function decode(string $string, bool $asArray)
|
||||
{
|
||||
if (version_compare(PHP_VERSION, '5.4.0', '>=') && !(defined('JSON_C_VERSION') && PHP_INT_SIZE > 4)) {
|
||||
if (
|
||||
version_compare(PHP_VERSION, '5.4.0', '>=') &&
|
||||
!(defined('JSON_C_VERSION') && PHP_INT_SIZE > 4)
|
||||
) {
|
||||
return json_decode($string, $asArray, 512, JSON_BIGINT_AS_STRING);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue