Skip to content

Commit 6f2de5a

Browse files
committed
Minor dev deps fixed
1 parent 37a2d58 commit 6f2de5a

File tree

4 files changed

+10
-16
lines changed

4 files changed

+10
-16
lines changed

composer.json

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@
7878
"symfony/polyfill-mbstring": "^1.12"
7979
},
8080
"require-dev": {
81-
"roave/security-advisories": "dev-latest",
8281
"ext-curl": "*",
8382
"ext-gmp": "*",
8483
"bjeavons/zxcvbn-php": "^1.0",
@@ -87,20 +86,22 @@
8786
"infection/infection": "^0.15|^0.16|^0.17|^0.18|^0.19|^0.20",
8887
"matthiasnoback/symfony-config-test": "^3.1|^4.0",
8988
"nyholm/psr7": "^1.3",
90-
"php-coveralls/php-coveralls": "^2.0",
9189
"php-http/mock-client": "^1.0",
92-
"phpstan/phpstan": "^0.12",
93-
"phpstan/phpstan-deprecation-rules": "^0.12",
94-
"phpstan/phpstan-phpunit": "^0.12",
95-
"phpstan/phpstan-strict-rules": "^0.12",
90+
"phpstan/extension-installer": "^1.1",
91+
"phpstan/phpstan": "^1.0",
92+
"phpstan/phpstan-deprecation-rules": "^1.0",
93+
"phpstan/phpstan-phpunit": "^1.0",
94+
"phpstan/phpstan-strict-rules": "^1.0",
9695
"phpunit/phpunit": "^8.0|^9.0",
96+
"roave/security-advisories": "dev-latest",
9797
"symfony/browser-kit": "^4.2|^5.0",
9898
"symfony/finder": "^4.2|^5.0",
9999
"symfony/framework-bundle": "^4.2|^5.0",
100100
"symfony/http-client": "^5.2",
101101
"symfony/phpunit-bridge": "^4.2|^5.0",
102102
"symfony/serializer": "^4.2|^5.0",
103-
"symfony/var-dumper": "^4.2|^5.0"
103+
"symfony/var-dumper": "^4.2|^5.0",
104+
"symfony/yaml": "^4.2|^5.0"
104105
},
105106
"replace": {
106107
"web-token/jwt-easy": "self.version",

phpstan.neon

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,4 @@ parameters:
2020
- '#Strict comparison using === between .* and .* will always evaluate to false\.#'
2121
- '#Binary operation "\^" between string and 1 results in an error\.#'
2222
includes:
23-
- vendor/phpstan/phpstan-strict-rules/rules.neon
24-
- vendor/phpstan/phpstan-phpunit/extension.neon
25-
- vendor/phpstan/phpstan-phpunit/rules.neon
26-
- vendor/phpstan/phpstan-deprecation-rules/rules.neon
2723
- vendor/phpstan/phpstan/conf/bleedingEdge.neon

src/Component/Core/Util/JsonConverter.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,6 @@ public static function encode($payload): string
4646
*/
4747
public static function decode(string $payload)
4848
{
49-
try {
50-
return json_decode($payload, true, 512, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE);
51-
} catch (Throwable $throwable) {
52-
throw new RuntimeException('Invalid content.', $throwable->getCode(), $throwable);
53-
}
49+
return json_decode($payload, true, 512, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE);
5450
}
5551
}

src/Component/Signature/JWSVerifier.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ private function getInputToVerify(JWS $jws, Signature $signature, ?string $detac
114114
{
115115
$isPayloadEmpty = $this->isPayloadEmpty($jws->getPayload());
116116
$encodedProtectedHeader = $signature->getEncodedProtectedHeader();
117+
117118
if (!$signature->hasProtectedHeaderParameter('b64') || true === $signature->getProtectedHeaderParameter('b64')) {
118119
if (null !== $jws->getEncodedPayload()) {
119120
return sprintf('%s.%s', $encodedProtectedHeader, $jws->getEncodedPayload());

0 commit comments

Comments
 (0)