From: Mikael Nordfeldth Date: Fri, 24 Jun 2016 12:49:52 +0000 (+0200) Subject: ParagonIE\ConstantTime required PHP7, going to v1.x branch X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=da365be5a2011bcb7939130fa60320f7d7198ed0;p=quix0rs-gnu-social.git ParagonIE\ConstantTime required PHP7, going to v1.x branch --- diff --git a/extlib/ParagonIE/ConstantTime/Base32.php b/extlib/ParagonIE/ConstantTime/Base32.php index a65c1c7343..28b8ca200e 100644 --- a/extlib/ParagonIE/ConstantTime/Base32.php +++ b/extlib/ParagonIE/ConstantTime/Base32.php @@ -1,5 +1,4 @@ > 2)) & 0xff) ); $err |= ($c0 | $c1 | $c2) >> 8; - } elseif ($i + 1 < $srcLen) { + } elseif($i + 1 < $srcLen) { $c1 = static::decode6Bits($chunk[2]); $dest .= \pack( 'C', @@ -179,7 +170,7 @@ abstract class Base64 implements EncoderInterface * @param int $src * @return int */ - protected static function decode6Bits(int $src): int + protected static function decode6Bits($src) { $ret = -1; @@ -208,7 +199,7 @@ abstract class Base64 implements EncoderInterface * @param int $src * @return string */ - protected static function encode6Bits(int $src): string + protected static function encode6Bits($src) { $diff = 0x41; diff --git a/extlib/ParagonIE/ConstantTime/Base64DotSlash.php b/extlib/ParagonIE/ConstantTime/Base64DotSlash.php index 7f975139b1..160459782e 100644 --- a/extlib/ParagonIE/ConstantTime/Base64DotSlash.php +++ b/extlib/ParagonIE/ConstantTime/Base64DotSlash.php @@ -1,5 +1,4 @@