diff options
author | Mario <mario@mariovavti.com> | 2024-09-30 07:11:05 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2024-09-30 07:11:05 +0000 |
commit | 3f411787c1436e2259efb184c0f84b13f4244fb0 (patch) | |
tree | afb3777ac9ba95d9c30c4dbb66ea82e0c6636f79 /vendor | |
parent | 5782a674b0cb490f1e3544e5dcb0f7e969361df3 (diff) | |
download | volse-hubzilla-3f411787c1436e2259efb184c0f84b13f4244fb0.tar.gz volse-hubzilla-3f411787c1436e2259efb184c0f84b13f4244fb0.tar.bz2 volse-hubzilla-3f411787c1436e2259efb184c0f84b13f4244fb0.zip |
update spomky-labs/otphp
Diffstat (limited to 'vendor')
-rw-r--r-- | vendor/composer/installed.json | 24 | ||||
-rw-r--r-- | vendor/composer/installed.php | 10 | ||||
-rw-r--r-- | vendor/spomky-labs/otphp/README.md | 1 | ||||
-rw-r--r-- | vendor/spomky-labs/otphp/composer.json | 10 | ||||
-rw-r--r-- | vendor/spomky-labs/otphp/src/Factory.php | 4 | ||||
-rw-r--r-- | vendor/spomky-labs/otphp/src/OTP.php | 10 | ||||
-rw-r--r-- | vendor/spomky-labs/otphp/src/ParameterTrait.php | 2 | ||||
-rw-r--r-- | vendor/spomky-labs/otphp/src/TOTP.php | 34 | ||||
-rw-r--r-- | vendor/spomky-labs/otphp/src/Url.php | 2 |
9 files changed, 48 insertions, 49 deletions
diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json index 2caaff464..9219e22e5 100644 --- a/vendor/composer/installed.json +++ b/vendor/composer/installed.json @@ -2045,17 +2045,17 @@ }, { "name": "spomky-labs/otphp", - "version": "11.2.0", - "version_normalized": "11.2.0.0", + "version": "11.2.2", + "version_normalized": "11.2.2.0", "source": { "type": "git", "url": "https://github.com/Spomky-Labs/otphp.git", - "reference": "9a1569038bb1c8e98040b14b8bcbba54f25e7795" + "reference": "b737d1c6330beae7c0bc225d3e848805b352fe42" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Spomky-Labs/otphp/zipball/9a1569038bb1c8e98040b14b8bcbba54f25e7795", - "reference": "9a1569038bb1c8e98040b14b8bcbba54f25e7795", + "url": "https://api.github.com/repos/Spomky-Labs/otphp/zipball/b737d1c6330beae7c0bc225d3e848805b352fe42", + "reference": "b737d1c6330beae7c0bc225d3e848805b352fe42", "shasum": "" }, "require": { @@ -2065,19 +2065,19 @@ }, "require-dev": { "ekino/phpstan-banned-code": "^1.0", - "infection/infection": "^0.26", + "infection/infection": "^0.26|^0.27|^0.28", "php-parallel-lint/php-parallel-lint": "^1.3", "phpstan/phpstan": "^1.0", "phpstan/phpstan-deprecation-rules": "^1.0", "phpstan/phpstan-phpunit": "^1.0", "phpstan/phpstan-strict-rules": "^1.0", - "phpunit/phpunit": "^9.5.26", + "phpunit/phpunit": "^9.5.26|^10.0|^11.0", "qossmic/deptrac-shim": "^1.0", - "rector/rector": "^0.15", - "symfony/phpunit-bridge": "^6.1", - "symplify/easy-coding-standard": "^11.0" + "rector/rector": "1.0", + "symfony/phpunit-bridge": "^6.1|^7.0", + "symplify/easy-coding-standard": "^12.0" }, - "time": "2023-03-16T19:16:25+00:00", + "time": "2024-04-15T07:35:15+00:00", "type": "library", "installation-source": "dist", "autoload": { @@ -2112,7 +2112,7 @@ ], "support": { "issues": "https://github.com/Spomky-Labs/otphp/issues", - "source": "https://github.com/Spomky-Labs/otphp/tree/11.2.0" + "source": "https://github.com/Spomky-Labs/otphp/tree/11.2.2" }, "funding": [ { diff --git a/vendor/composer/installed.php b/vendor/composer/installed.php index d720f5aff..551464544 100644 --- a/vendor/composer/installed.php +++ b/vendor/composer/installed.php @@ -3,7 +3,7 @@ 'name' => 'zotlabs/hubzilla', 'pretty_version' => 'dev-master', 'version' => 'dev-master', - 'reference' => 'fc79e47d88f36709f680d2111035fd123203ce0b', + 'reference' => '5782a674b0cb490f1e3544e5dcb0f7e969361df3', 'type' => 'application', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), @@ -278,9 +278,9 @@ 'dev_requirement' => false, ), 'spomky-labs/otphp' => array( - 'pretty_version' => '11.2.0', - 'version' => '11.2.0.0', - 'reference' => '9a1569038bb1c8e98040b14b8bcbba54f25e7795', + 'pretty_version' => '11.2.2', + 'version' => '11.2.2.0', + 'reference' => 'b737d1c6330beae7c0bc225d3e848805b352fe42', 'type' => 'library', 'install_path' => __DIR__ . '/../spomky-labs/otphp', 'aliases' => array(), @@ -349,7 +349,7 @@ 'zotlabs/hubzilla' => array( 'pretty_version' => 'dev-master', 'version' => 'dev-master', - 'reference' => 'fc79e47d88f36709f680d2111035fd123203ce0b', + 'reference' => '5782a674b0cb490f1e3544e5dcb0f7e969361df3', 'type' => 'application', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), diff --git a/vendor/spomky-labs/otphp/README.md b/vendor/spomky-labs/otphp/README.md index b23282ea1..542de6fbd 100644 --- a/vendor/spomky-labs/otphp/README.md +++ b/vendor/spomky-labs/otphp/README.md @@ -2,6 +2,7 @@ TOTP / HOTP library in PHP ========================== ![Build Status](https://github.com/spomky-labs/otphp/workflows/Integrate/badge.svg) +![Build Status](https://github.com/spomky-labs/otphp/workflows/Infection/badge.svg) [![Latest Stable Version](https://poser.pugx.org/spomky-labs/otphp/v/stable.png)](https://packagist.org/packages/spomky-labs/otphp) [![Total Downloads](https://poser.pugx.org/spomky-labs/otphp/downloads.png)](https://packagist.org/packages/spomky-labs/otphp) diff --git a/vendor/spomky-labs/otphp/composer.json b/vendor/spomky-labs/otphp/composer.json index 080df371a..33901f793 100644 --- a/vendor/spomky-labs/otphp/composer.json +++ b/vendor/spomky-labs/otphp/composer.json @@ -22,17 +22,17 @@ }, "require-dev": { "ekino/phpstan-banned-code": "^1.0", - "infection/infection": "^0.26", + "infection/infection": "^0.26|^0.27|^0.28", "php-parallel-lint/php-parallel-lint": "^1.3", "phpstan/phpstan": "^1.0", "phpstan/phpstan-deprecation-rules": "^1.0", "phpstan/phpstan-phpunit": "^1.0", "phpstan/phpstan-strict-rules": "^1.0", - "phpunit/phpunit": "^9.5.26", + "phpunit/phpunit": "^9.5.26|^10.0|^11.0", "qossmic/deptrac-shim": "^1.0", - "rector/rector": "^0.15", - "symfony/phpunit-bridge": "^6.1", - "symplify/easy-coding-standard": "^11.0" + "rector/rector": "1.0", + "symfony/phpunit-bridge": "^6.1|^7.0", + "symplify/easy-coding-standard": "^12.0" }, "autoload": { "psr-4": { "OTPHP\\": "src/" } diff --git a/vendor/spomky-labs/otphp/src/Factory.php b/vendor/spomky-labs/otphp/src/Factory.php index 409d8751e..f58e8385c 100644 --- a/vendor/spomky-labs/otphp/src/Factory.php +++ b/vendor/spomky-labs/otphp/src/Factory.php @@ -4,10 +4,10 @@ declare(strict_types=1); namespace OTPHP; -use function assert; -use function count; use InvalidArgumentException; use Throwable; +use function assert; +use function count; /** * This class is used to load OTP object from a provisioning Uri. diff --git a/vendor/spomky-labs/otphp/src/OTP.php b/vendor/spomky-labs/otphp/src/OTP.php index 4765d49eb..944ed8f62 100644 --- a/vendor/spomky-labs/otphp/src/OTP.php +++ b/vendor/spomky-labs/otphp/src/OTP.php @@ -4,14 +4,14 @@ declare(strict_types=1); namespace OTPHP; -use function assert; -use function chr; -use function count; use Exception; use InvalidArgumentException; -use function is_string; use ParagonIE\ConstantTime\Base32; use RuntimeException; +use function assert; +use function chr; +use function count; +use function is_string; use const STR_PAD_LEFT; abstract class OTP implements OTPInterface @@ -100,7 +100,7 @@ abstract class OTP implements OTPInterface $this->hasColon($label) === false || throw new InvalidArgumentException('Label must not contain a colon.'); $options = [...$options, ...$this->getParameters()]; $this->filterOptions($options); - $params = str_replace(['+', '%7E'], ['%20', '~'], http_build_query($options)); + $params = str_replace(['+', '%7E'], ['%20', '~'], http_build_query($options, '', '&')); return sprintf( 'otpauth://%s/%s?%s', diff --git a/vendor/spomky-labs/otphp/src/ParameterTrait.php b/vendor/spomky-labs/otphp/src/ParameterTrait.php index 3b2641e0c..dc92861c4 100644 --- a/vendor/spomky-labs/otphp/src/ParameterTrait.php +++ b/vendor/spomky-labs/otphp/src/ParameterTrait.php @@ -4,10 +4,10 @@ declare(strict_types=1); namespace OTPHP; +use InvalidArgumentException; use function array_key_exists; use function assert; use function in_array; -use InvalidArgumentException; use function is_int; use function is_string; diff --git a/vendor/spomky-labs/otphp/src/TOTP.php b/vendor/spomky-labs/otphp/src/TOTP.php index 3a7d72870..8a1cfeba1 100644 --- a/vendor/spomky-labs/otphp/src/TOTP.php +++ b/vendor/spomky-labs/otphp/src/TOTP.php @@ -4,8 +4,8 @@ declare(strict_types=1); namespace OTPHP; -use function assert; use InvalidArgumentException; +use function assert; use function is_int; /** @@ -133,23 +133,21 @@ final class TOTP extends OTP implements TOTPInterface */ protected function getParameterMap(): array { - return array_merge( - parent::getParameterMap(), - [ - 'period' => static function ($value): int { - (int) $value > 0 || throw new InvalidArgumentException('Period must be at least 1.'); - - return (int) $value; - }, - 'epoch' => static function ($value): int { - (int) $value >= 0 || throw new InvalidArgumentException( - 'Epoch must be greater than or equal to 0.' - ); - - return (int) $value; - }, - ] - ); + return [ + ...parent::getParameterMap(), + 'period' => static function ($value): int { + (int) $value > 0 || throw new InvalidArgumentException('Period must be at least 1.'); + + return (int) $value; + }, + 'epoch' => static function ($value): int { + (int) $value >= 0 || throw new InvalidArgumentException( + 'Epoch must be greater than or equal to 0.' + ); + + return (int) $value; + }, + ]; } /** diff --git a/vendor/spomky-labs/otphp/src/Url.php b/vendor/spomky-labs/otphp/src/Url.php index 76919d27a..a97ca6821 100644 --- a/vendor/spomky-labs/otphp/src/Url.php +++ b/vendor/spomky-labs/otphp/src/Url.php @@ -4,8 +4,8 @@ declare(strict_types=1); namespace OTPHP; -use function array_key_exists; use InvalidArgumentException; +use function array_key_exists; use function is_string; /** |