Skip to content

Commit 613bffc

Browse files
committed
Migrate code to PHP 8.3
1 parent 25bde10 commit 613bffc

File tree

192 files changed

+762
-1173
lines changed

Some content is hidden

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

192 files changed

+762
-1173
lines changed

src/Certificate/Key.php

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
class Key implements ArrayAccess
2020
{
2121
// Possible key usages
22-
public const USAGE_SIGNING = 'signing';
22+
public const string USAGE_SIGNING = 'signing';
2323

24-
public const USAGE_ENCRYPTION = 'encryption';
24+
public const string USAGE_ENCRYPTION = 'encryption';
2525

2626

2727
/** @var array */
@@ -43,8 +43,6 @@ public function __construct(array $keyData)
4343
/**
4444
* Whether or not the key is configured to be used for usage given
4545
*
46-
* @param string $usage
47-
* @return bool
4846
* @throws \SimpleSAML\SAML2\Exception\InvalidArgumentException
4947
*/
5048
public function canBeUsedFor(string $usage): bool
@@ -62,8 +60,8 @@ public function canBeUsedFor(string $usage): bool
6260

6361
/**
6462
* @param mixed $offset
63+
*
6564
* @throws \SimpleSAML\SAML2\Exception\InvalidArgumentException
66-
* @return bool
6765
*/
6866
public function offsetExists(mixed $offset): bool
6967
{
@@ -75,9 +73,7 @@ public function offsetExists(mixed $offset): bool
7573

7674

7775
/**
78-
* @param mixed $offset
7976
* @throws \SimpleSAML\SAML2\Exception\InvalidArgumentException
80-
* @return mixed
8177
*/
8278
public function offsetGet($offset): mixed
8379
{
@@ -89,8 +85,6 @@ public function offsetGet($offset): mixed
8985

9086

9187
/**
92-
* @param mixed $offset
93-
* @param mixed $value
9488
* @throws \SimpleSAML\SAML2\Exception\InvalidArgumentException
9589
*/
9690
public function offsetSet(mixed $offset, mixed $value): void
@@ -103,7 +97,6 @@ public function offsetSet(mixed $offset, mixed $value): void
10397

10498

10599
/**
106-
* @param mixed $offset
107100
* @throws \SimpleSAML\SAML2\Exception\InvalidArgumentException
108101
*/
109102
public function offsetUnset(mixed $offset): void

src/Configuration/PrivateKey.php

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,13 @@
1111
*/
1212
class PrivateKey extends ArrayAdapter
1313
{
14-
/** @var string */
15-
public const NAME_NEW = 'new';
14+
public const string NAME_NEW = 'new';
1615

17-
/** @var string */
18-
public const NAME_DEFAULT = 'default';
16+
public const string NAME_DEFAULT = 'default';
1917

2018

2119
/**
2220
* Constructor for PrivateKey.
23-
*
24-
* @param string $filePathOrContents
25-
* @param string $name
26-
* @param string $passphrase
27-
* @param bool $isFile
2821
*/
2922
public function __construct(
3023
private string $filePathOrContents,
@@ -36,8 +29,6 @@ public function __construct(
3629

3730

3831
/**
39-
* @return string
40-
*
4132
* @throws \SimpleSAML\Assert\AssertionFailedException if assertions are false
4233
*/
4334
public function getFilePath(): string
@@ -49,7 +40,6 @@ public function getFilePath(): string
4940

5041

5142
/**
52-
* @return bool
5343
*/
5444
public function hasPassPhrase(): bool
5545
{
@@ -58,7 +48,6 @@ public function hasPassPhrase(): bool
5848

5949

6050
/**
61-
* @return string
6251
*/
6352
public function getPassPhrase(): string
6453
{
@@ -67,7 +56,6 @@ public function getPassPhrase(): string
6756

6857

6958
/**
70-
* @return string
7159
*/
7260
public function getName(): string
7361
{
@@ -76,8 +64,6 @@ public function getName(): string
7664

7765

7866
/**
79-
* @return string
80-
*
8167
* @throws \SimpleSAML\Assert\AssertionFailedException if assertions are false
8268
*/
8369
public function getContents(): string
@@ -89,7 +75,6 @@ public function getContents(): string
8975

9076

9177
/**
92-
* @return bool
9378
*/
9479
public function isFile(): bool
9580
{

0 commit comments

Comments
 (0)