Skip to content

Commit 0e42ec4

Browse files
tempStephan Wentz
andauthored
Add missing context parameters for supportsEncoding() and supportsDecoding() (#357)
Co-authored-by: Stephan Wentz <[email protected]>
1 parent c0cc596 commit 0e42ec4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Bundle/JoseFramework/Serializer/JWEEncoder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ public function __construct(
3232
$this->serializerManager = $serializerManager;
3333
}
3434

35-
public function supportsEncoding(string $format): bool
35+
public function supportsEncoding(string $format, array $context = []): bool
3636
{
3737
return class_exists(JWESerializerManager::class) && $this->formatSupported($format);
3838
}
3939

40-
public function supportsDecoding(string $format): bool
40+
public function supportsDecoding(string $format, array $context = []): bool
4141
{
4242
return class_exists(JWESerializerManager::class) && $this->formatSupported($format);
4343
}

src/Bundle/JoseFramework/Serializer/JWSEncoder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ public function __construct(
3131
$this->serializerManager = $serializerManager;
3232
}
3333

34-
public function supportsEncoding(string $format): bool
34+
public function supportsEncoding(string $format, array $context = []): bool
3535
{
3636
return class_exists(JWSSerializerManager::class) && $this->formatSupported($format);
3737
}
3838

39-
public function supportsDecoding(string $format): bool
39+
public function supportsDecoding(string $format, array $context = []): bool
4040
{
4141
return class_exists(JWSSerializerManager::class) && $this->formatSupported($format);
4242
}

0 commit comments

Comments
 (0)