Skip to content

Commit cf821c7

Browse files
authored
Merge pull request #201 from web-token/MissingDeprecations
Fix missing deprecations notices
2 parents 52d0f88 + d5a56f0 commit cf821c7

File tree

5 files changed

+15
-5
lines changed

5 files changed

+15
-5
lines changed

src/Component/Checker/ClaimCheckerManager.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class ClaimCheckerManager
2828
*
2929
* @param ClaimChecker[] $checkers
3030
*/
31-
private function __construct(array $checkers)
31+
public function __construct(array $checkers)
3232
{
3333
foreach ($checkers as $checker) {
3434
$this->add($checker);
@@ -39,6 +39,8 @@ private function __construct(array $checkers)
3939
* This method creates the ClaimCheckerManager.
4040
* The argument is a list of claim checkers objects.
4141
*
42+
* @deprecated Will be removed in v2.0. Please use constructor instead
43+
*
4244
* @param ClaimChecker[] $checkers
4345
*
4446
* @return ClaimCheckerManager

src/Component/Checker/HeaderCheckerManager.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class HeaderCheckerManager
3333
* @param HeaderChecker[] $checkers
3434
* @param TokenTypeSupport[] $tokenTypes
3535
*/
36-
private function __construct(array $checkers, array $tokenTypes)
36+
public function __construct(array $checkers, array $tokenTypes)
3737
{
3838
foreach ($checkers as $checker) {
3939
$this->add($checker);
@@ -49,6 +49,8 @@ private function __construct(array $checkers, array $tokenTypes)
4949
* The second argument is a list of token type support objects.
5050
* It is recommended to support only one token type per manager.
5151
*
52+
* @deprecated Will be removed in v2.0. Please use constructor instead
53+
*
5254
* @param HeaderChecker[] $checkers
5355
* @param TokenTypeSupport[] $tokenTypes
5456
*

src/Component/Core/AlgorithmManager.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class AlgorithmManager
2525
*
2626
* @param Algorithm[] $algorithms
2727
*/
28-
private function __construct(array $algorithms)
28+
public function __construct(array $algorithms)
2929
{
3030
foreach ($algorithms as $algorithm) {
3131
$this->add($algorithm);
@@ -35,6 +35,8 @@ private function __construct(array $algorithms)
3535
/**
3636
* This method creates an alogithm manager using the given algorithms.
3737
*
38+
* @deprecated Will be removed in v2.0. Please use constructor instead
39+
*
3840
* @param Algorithm[] $algorithms
3941
*
4042
* @return AlgorithmManager

src/Component/Encryption/Serializer/JWESerializerManager.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class JWESerializerManager
2727
*
2828
* @param JWESerializer[] $serializers
2929
*/
30-
private function __construct(array $serializers)
30+
public function __construct(array $serializers)
3131
{
3232
foreach ($serializers as $serializer) {
3333
$this->add($serializer);
@@ -37,6 +37,8 @@ private function __construct(array $serializers)
3737
/**
3838
* Creates a serializer manager using the given serializers.
3939
*
40+
* @deprecated Will be removed in v2.0. Please use constructor instead
41+
*
4042
* @param JWESerializer[] $serializers
4143
*
4244
* @return JWESerializerManager

src/Component/Signature/Serializer/JWSSerializerManager.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,16 @@ class JWSSerializerManager
2727
*
2828
* @param JWSSerializer[] $serializers
2929
*/
30-
private function __construct(array $serializers)
30+
public function __construct(array $serializers)
3131
{
3232
foreach ($serializers as $serializer) {
3333
$this->add($serializer);
3434
}
3535
}
3636

3737
/**
38+
* @deprecated Will be removed in v2.0. Please use constructor instead
39+
*
3840
* @param JWSSerializer[] $serializers
3941
*
4042
* @return JWSSerializerManager

0 commit comments

Comments
 (0)