Skip to content

Commit 5268df5

Browse files
authored
Deps/ecs rector dependencies (#535)
* Cleanup dependencies, Rector and ECS
1 parent d81a4f7 commit 5268df5

File tree

358 files changed

+1857
-973
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

358 files changed

+1857
-973
lines changed

composer.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@
5151
"ext-mbstring": "*",
5252
"ext-openssl": "*",
5353
"brick/math": "^0.12",
54-
"paragonie/constant_time_encoding": "^2.6",
55-
"paragonie/sodium_compat": "^1.20",
5654
"psr/clock": "^1.0",
5755
"psr/event-dispatcher": "^1.0",
5856
"spomky-labs/pki-framework": "^1.1",
@@ -67,11 +65,11 @@
6765
"ext-curl": "*",
6866
"ext-gmp": "*",
6967
"ext-sodium": "*",
70-
"bjeavons/zxcvbn-php": "^1.3",
7168
"ekino/phpstan-banned-code": "^1.0",
7269
"infection/infection": "^0.27",
7370
"matthiasnoback/symfony-config-test": "^5.0",
7471
"nikic/php-parser": "^4.18",
72+
"paragonie/sodium_compat": "^1.20",
7573
"php-parallel-lint/php-parallel-lint": "^1.3",
7674
"phpbench/phpbench": "^1.2",
7775
"phpstan/extension-installer": "^1.3",
@@ -100,7 +98,6 @@
10098
"web-token/jwt-experimental": "self.version"
10199
},
102100
"suggest": {
103-
"bjeavons/zxcvbn-php": "Adds key quality check for oct keys.",
104101
"symfony/serializer": "Use the Symfony serializer to serialize/unserialize JWS and JWE tokens.",
105102
"symfony/var-dumper": "Used to show data on the debug toolbar.",
106103
"spomky-labs/aes-key-wrap": "To enable AES Key Wrap algorithm."

deptrac.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ parameters:
1515
collectors:
1616
- { type: className, regex: '^Symfony\\' }
1717
- { type: className, regex: '^SpomkyLabs\\Pki\\' }
18-
- { type: className, regex: '^ParagonIE\\' }
18+
- { type: className, regex: '^ParagonIE\\Sodium\\' }
1919
- { type: className, regex: '^Psr\\EventDispatcher\\' }
2020
- { type: className, regex: '^Psr\\Clock\\' }
2121
- { type: className, regex: '^Brick\\Math\\' }

performance/JWE/A128GCMKWBench.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace Jose\Performance\JWE;
66

7+
use Override;
78
use PhpBench\Benchmark\Metadata\Annotations\Groups;
89
use PhpBench\Benchmark\Metadata\Annotations\Revs;
910

@@ -13,6 +14,7 @@
1314
*/
1415
final class A128GCMKWBench extends EncryptionBench
1516
{
17+
#[Override]
1618
public function dataHeadersAndAlgorithms(): array
1719
{
1820
return [
@@ -90,6 +92,7 @@ public function dataPrivateKeys(): array
9092
];
9193
}
9294

95+
#[Override]
9396
public function dataRecipientPublicKeys(): array
9497
{
9598
return [
@@ -102,6 +105,7 @@ public function dataRecipientPublicKeys(): array
102105
];
103106
}
104107

108+
#[Override]
105109
protected function getAAD(): ?string
106110
{
107111
return 'A,B,C,D';

performance/JWE/A128KWBench.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace Jose\Performance\JWE;
66

7+
use Override;
78
use PhpBench\Benchmark\Metadata\Annotations\Groups;
89
use PhpBench\Benchmark\Metadata\Annotations\Revs;
910

@@ -13,6 +14,7 @@
1314
*/
1415
final class A128KWBench extends EncryptionBench
1516
{
17+
#[Override]
1618
public function dataHeadersAndAlgorithms(): array
1719
{
1820
return [
@@ -90,6 +92,7 @@ public function dataPrivateKeys(): array
9092
];
9193
}
9294

95+
#[Override]
9396
public function dataRecipientPublicKeys(): array
9497
{
9598
return [
@@ -102,6 +105,7 @@ public function dataRecipientPublicKeys(): array
102105
];
103106
}
104107

108+
#[Override]
105109
protected function getAAD(): ?string
106110
{
107111
return 'A,B,C,D';

performance/JWE/A192GCMKWBench.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace Jose\Performance\JWE;
66

7+
use Override;
78
use PhpBench\Benchmark\Metadata\Annotations\Groups;
89
use PhpBench\Benchmark\Metadata\Annotations\Revs;
910

@@ -13,6 +14,7 @@
1314
*/
1415
final class A192GCMKWBench extends EncryptionBench
1516
{
17+
#[Override]
1618
public function dataHeadersAndAlgorithms(): array
1719
{
1820
return [
@@ -90,6 +92,7 @@ public function dataPrivateKeys(): array
9092
];
9193
}
9294

95+
#[Override]
9396
public function dataRecipientPublicKeys(): array
9497
{
9598
return [
@@ -102,6 +105,7 @@ public function dataRecipientPublicKeys(): array
102105
];
103106
}
104107

108+
#[Override]
105109
protected function getAAD(): ?string
106110
{
107111
return 'A,B,C,D';

performance/JWE/A192KWBench.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace Jose\Performance\JWE;
66

7+
use Override;
78
use PhpBench\Benchmark\Metadata\Annotations\Groups;
89
use PhpBench\Benchmark\Metadata\Annotations\Revs;
910

@@ -13,6 +14,7 @@
1314
*/
1415
final class A192KWBench extends EncryptionBench
1516
{
17+
#[Override]
1618
public function dataHeadersAndAlgorithms(): array
1719
{
1820
return [
@@ -90,6 +92,7 @@ public function dataPrivateKeys(): array
9092
];
9193
}
9294

95+
#[Override]
9396
public function dataRecipientPublicKeys(): array
9497
{
9598
return [
@@ -102,6 +105,7 @@ public function dataRecipientPublicKeys(): array
102105
];
103106
}
104107

108+
#[Override]
105109
protected function getAAD(): ?string
106110
{
107111
return 'A,B,C,D';

performance/JWE/A256GCMKWBench.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace Jose\Performance\JWE;
66

7+
use Override;
78
use PhpBench\Benchmark\Metadata\Annotations\Groups;
89
use PhpBench\Benchmark\Metadata\Annotations\Revs;
910

@@ -13,6 +14,7 @@
1314
*/
1415
final class A256GCMKWBench extends EncryptionBench
1516
{
17+
#[Override]
1618
public function dataHeadersAndAlgorithms(): array
1719
{
1820
return [
@@ -90,6 +92,7 @@ public function dataPrivateKeys(): array
9092
];
9193
}
9294

95+
#[Override]
9396
public function dataRecipientPublicKeys(): array
9497
{
9598
return [
@@ -102,6 +105,7 @@ public function dataRecipientPublicKeys(): array
102105
];
103106
}
104107

108+
#[Override]
105109
protected function getAAD(): ?string
106110
{
107111
return 'A,B,C,D';

performance/JWE/A256KWBench.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace Jose\Performance\JWE;
66

7+
use Override;
78
use PhpBench\Benchmark\Metadata\Annotations\Groups;
89
use PhpBench\Benchmark\Metadata\Annotations\Revs;
910

@@ -13,6 +14,7 @@
1314
*/
1415
final class A256KWBench extends EncryptionBench
1516
{
17+
#[Override]
1618
public function dataHeadersAndAlgorithms(): array
1719
{
1820
return [
@@ -90,6 +92,7 @@ public function dataPrivateKeys(): array
9092
];
9193
}
9294

95+
#[Override]
9396
public function dataRecipientPublicKeys(): array
9497
{
9598
return [
@@ -102,6 +105,7 @@ public function dataRecipientPublicKeys(): array
102105
];
103106
}
104107

108+
#[Override]
105109
protected function getAAD(): ?string
106110
{
107111
return 'A,B,C,D';

performance/JWE/ECDHESA128KWBench.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace Jose\Performance\JWE;
66

7+
use Override;
78
use PhpBench\Benchmark\Metadata\Annotations\Groups;
89
use PhpBench\Benchmark\Metadata\Annotations\Revs;
910

@@ -13,6 +14,7 @@
1314
*/
1415
final class ECDHESA128KWBench extends EncryptionBench
1516
{
17+
#[Override]
1618
public function dataHeadersAndAlgorithms(): array
1719
{
1820
return [
@@ -179,6 +181,7 @@ public function dataPrivateKeys(): array
179181
];
180182
}
181183

184+
#[Override]
182185
public function dataRecipientPublicKeys(): array
183186
{
184187
return [
@@ -216,6 +219,7 @@ public function dataRecipientPublicKeys(): array
216219
];
217220
}
218221

222+
#[Override]
219223
protected function getAAD(): ?string
220224
{
221225
return 'A,B,C,D';

performance/JWE/ECDHESA192KWBench.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace Jose\Performance\JWE;
66

7+
use Override;
78
use PhpBench\Benchmark\Metadata\Annotations\Groups;
89
use PhpBench\Benchmark\Metadata\Annotations\Revs;
910

@@ -13,6 +14,7 @@
1314
*/
1415
final class ECDHESA192KWBench extends EncryptionBench
1516
{
17+
#[Override]
1618
public function dataHeadersAndAlgorithms(): array
1719
{
1820
return [
@@ -179,6 +181,7 @@ public function dataPrivateKeys(): array
179181
];
180182
}
181183

184+
#[Override]
182185
public function dataRecipientPublicKeys(): array
183186
{
184187
return [
@@ -216,6 +219,7 @@ public function dataRecipientPublicKeys(): array
216219
];
217220
}
218221

222+
#[Override]
219223
protected function getAAD(): ?string
220224
{
221225
return 'A,B,C,D';

0 commit comments

Comments
 (0)