Skip to content

Commit 90a0abf

Browse files
authored
Fix PHPDoc (#444)
1 parent 2ca75a4 commit 90a0abf

File tree

2 files changed

+17
-7
lines changed

2 files changed

+17
-7
lines changed

phpstan-baseline.neon

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1756,30 +1756,40 @@ parameters:
17561756
path: src/Component/KeyManagement/X5UFactory.php
17571757

17581758
-
1759-
message: "#^Parameter \\#1 \\$recipientKey of method Jose\\\\Component\\\\Encryption\\\\JWEBuilder\\:\\:addRecipient\\(\\) expects Jose\\\\Component\\\\Core\\\\JWK, mixed given\\.$#"
1759+
message: "#^Call to function array_key_exists\\(\\) with 'key' and array\\{key\\: Jose\\\\Component\\\\Core\\\\JWK, header\\?\\: array\\<string, mixed\\>\\} will always evaluate to true\\.$#"
17601760
count: 1
17611761
path: src/Component/NestedToken/NestedTokenBuilder.php
17621762

17631763
-
1764-
message: "#^Parameter \\#1 \\$signatureKey of method Jose\\\\Component\\\\Signature\\\\JWSBuilder\\:\\:addSignature\\(\\) expects Jose\\\\Component\\\\Core\\\\JWK, mixed given\\.$#"
1764+
message: "#^Call to function array_key_exists\\(\\) with 'key' and array\\{key\\: Jose\\\\Component\\\\Core\\\\JWK, protected_header\\?\\: array\\<string, mixed\\>, header\\?\\: array\\<string, mixed\\>\\} will always evaluate to true\\.$#"
17651765
count: 1
17661766
path: src/Component/NestedToken/NestedTokenBuilder.php
17671767

17681768
-
1769-
message: "#^Parameter \\#2 \\$protectedHeader of method Jose\\\\Component\\\\Signature\\\\JWSBuilder\\:\\:addSignature\\(\\) expects array\\{alg\\?\\: string, string\\?\\: mixed\\}, mixed given\\.$#"
1769+
message: "#^Call to function is_array\\(\\) with array\\{key\\: Jose\\\\Component\\\\Core\\\\JWK, header\\?\\: array\\<string, mixed\\>\\} will always evaluate to true\\.$#"
17701770
count: 1
17711771
path: src/Component/NestedToken/NestedTokenBuilder.php
17721772

17731773
-
1774-
message: "#^Parameter \\#2 \\$recipientHeader of method Jose\\\\Component\\\\Encryption\\\\JWEBuilder\\:\\:addRecipient\\(\\) expects array, mixed given\\.$#"
1774+
message: "#^Call to function is_array\\(\\) with array\\{key\\: Jose\\\\Component\\\\Core\\\\JWK, protected_header\\?\\: array\\<string, mixed\\>, header\\?\\: array\\<string, mixed\\>\\} will always evaluate to true\\.$#"
17751775
count: 1
17761776
path: src/Component/NestedToken/NestedTokenBuilder.php
17771777

17781778
-
1779-
message: "#^Parameter \\#3 \\$header of method Jose\\\\Component\\\\Signature\\\\JWSBuilder\\:\\:addSignature\\(\\) expects array\\{alg\\?\\: string, string\\?\\: mixed\\}, mixed given\\.$#"
1779+
message: "#^Parameter \\#2 \\$protectedHeader of method Jose\\\\Component\\\\Signature\\\\JWSBuilder\\:\\:addSignature\\(\\) expects array\\{alg\\?\\: string, string\\?\\: mixed\\}, array\\<string, mixed\\> given\\.$#"
17801780
count: 1
17811781
path: src/Component/NestedToken/NestedTokenBuilder.php
17821782

1783+
-
1784+
message: "#^Parameter \\#3 \\$header of method Jose\\\\Component\\\\Signature\\\\JWSBuilder\\:\\:addSignature\\(\\) expects array\\{alg\\?\\: string, string\\?\\: mixed\\}, array\\<string, mixed\\> given\\.$#"
1785+
count: 1
1786+
path: src/Component/NestedToken/NestedTokenBuilder.php
1787+
1788+
-
1789+
message: "#^Result of \\|\\| is always false\\.$#"
1790+
count: 2
1791+
path: src/Component/NestedToken/NestedTokenBuilder.php
1792+
17831793
-
17841794
message: "#^Parameter \\#2 \\$protectedHeader of method Jose\\\\Component\\\\Signature\\\\JWS\\:\\:addSignature\\(\\) expects array\\{alg\\?\\: string, string\\?\\: mixed\\}, array\\<string, mixed\\> given\\.$#"
17851795
count: 1

src/Component/NestedToken/NestedTokenBuilder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ public function __construct(
2626
/**
2727
* Creates a nested token.
2828
*
29-
* @param array{key: JWK, protected_header?: array<string, mixed>, header?: array<string, mixed>} $signatures
29+
* @param array{array{key: JWK, protected_header?: array<string, mixed>, header?: array<string, mixed>}} $signatures
3030
* @param array{alg?: string, string?: mixed} $jweSharedProtectedHeader
3131
* @param array{alg?: string, string?: mixed} $jweSharedHeader
32-
* @param array{key: JWK, header?: array<string, mixed>} $recipients
32+
* @param array{array{key: JWK, header?: array<string, mixed>}} $recipients
3333
*/
3434
public function create(
3535
string $payload,

0 commit comments

Comments
 (0)