Skip to content

Commit df7fc49

Browse files
committed
Fix phpstan errors
1 parent 6baf9c7 commit df7fc49

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

phpstan.neon

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@ parameters:
99
- bin
1010

1111
ignoreErrors:
12-
-
13-
message: '#Parameter \#2 \$form of static method Normalizer::normalize\(\) expects int, string given\.#'
14-
path: src/CodePointString.php
15-
count: 2
12+
- '#Parameter \#2 \$form of static method Normalizer::(isNormalized|normalize)\(\) expects int, string given\.#'
1613

1714
# This error can safely be ignored as we do these checks when building the data files.
1815
-

src/CodePoint.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public static function encode(int $codePoint): string
5353
*
5454
* @see https://encoding.spec.whatwg.org/#utf-8-decoder
5555
*
56-
* @return array<int, int>
56+
* @return list<int>
5757
*/
5858
public static function utf8Decode(string $input): array
5959
{

src/LabelValidator.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ public function __construct(DomainInfo $info)
3737
}
3838
}
3939

40+
/**
41+
* @param list<int> $codePoints
42+
*/
4043
protected function isValidContextJ(string $label, array $codePoints): bool
4144
{
4245
$offset = 0;

0 commit comments

Comments
 (0)