Skip to content

Commit d0b8379

Browse files
committed
Fix codesniffer issues
1 parent 0715363 commit d0b8379

7 files changed

Lines changed: 8 additions & 8 deletions

File tree

src/Codebooks/MetadataPolicyOperatorsEnum.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,11 @@ public function isValueSubsetOf(mixed $value, array $superset): bool
145145
$value = is_array($value) ? $value : [$value];
146146

147147
$cast = static fn(mixed $v): string|int|float|bool|null =>
148-
is_object($v) && method_exists($v, '__toString') ? (string) $v : $v;
148+
is_object($v) && method_exists($v, '__toString') ? (string) $v : $v;
149149

150150
return array_diff(
151151
array_map($cast, $value),
152-
array_map($cast, $superset)
152+
array_map($cast, $superset),
153153
) === [];
154154
}
155155

src/Decorators/HttpClientDecorator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
class HttpClientDecorator
1515
{
16-
public const DEFAULT_HTTP_CLIENT_CONFIG = [RequestOptions::ALLOW_REDIRECTS => true,];
16+
public const array DEFAULT_HTTP_CLIENT_CONFIG = [RequestOptions::ALLOW_REDIRECTS => true,];
1717

1818

1919
public function __construct(public readonly Client $client = new Client(self::DEFAULT_HTTP_CLIENT_CONFIG))

src/Helpers/Arr.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
class Arr
1010
{
11-
public const MAX_DEPTH = 99;
11+
public const int MAX_DEPTH = 99;
1212

1313

1414
/**

src/SdJwt/Disclosure.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Disclosure implements JsonSerializable
1616
/**
1717
* @var non-empty-array<string|int>
1818
*/
19-
public const FORBIDDEN_NAMES = [
19+
public const array FORBIDDEN_NAMES = [
2020
ClaimsEnum::_SdAlg->value,
2121
ClaimsEnum::_Sd->value,
2222
ClaimsEnum::DotDotDot->value,

src/SdJwt/SdJwt.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
*/
2222
class SdJwt extends ParsedJws
2323
{
24-
public const TILDE = '~';
24+
public const string TILDE = '~';
2525

2626

2727
public function __construct(

src/VerifiableCredentials/SdJwtVc/SdJwtVc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class SdJwtVc extends SdJwt
1717
* As per https://datatracker.ietf.org/doc/html/draft-ietf-oauth-sd-jwt-vc#section-3.2.2.2
1818
* @var string[]
1919
*/
20-
public const NON_SELECTIVELY_DISCLOSABLE_CLAIMS = [
20+
public const array NON_SELECTIVELY_DISCLOSABLE_CLAIMS = [
2121
ClaimsEnum::Iss->value,
2222
ClaimsEnum::Nbf->value,
2323
ClaimsEnum::Exp->value,

tests/src/Help.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
class Help
88
{
9-
public const DIR_DATA = 'data';
9+
public const string DIR_DATA = 'data';
1010

1111

1212
public function getTestRootDir(string ...$pathElements): string

0 commit comments

Comments
 (0)