Skip to content

Commit 3660995

Browse files
committed
Fix: Phpstan typing errors in ReportSanitizer
1 parent 71cae65 commit 3660995

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

src/Support/ReportSanitizer.php

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,11 @@ class ReportSanitizer
1010
const REPLACED_ENTRY_PREFIX = 'Spatie/Flare';
1111

1212
/**
13-
* @param array<string,array|string|bool|int|null> $payload
14-
* @return array<string|int,mixed>
13+
* @template K of array-key
14+
* @template V
15+
*
16+
* @param array<K,V> $payload
17+
* @return array<K,mixed>
1518
*/
1619
public static function sanitizePayload(array $payload): array
1720
{
@@ -25,8 +28,10 @@ public static function sanitizePayload(array $payload): array
2528
}
2629

2730
/**
28-
* @param array<string|int,mixed> $input
29-
* @return array<string|int,mixed>
31+
* @template K of array-key
32+
*
33+
* @param array<K,mixed> $input
34+
* @return array<K,mixed>
3035
*/
3136
protected static function replaceNonEncodableEntries(array $input): array
3237
{

0 commit comments

Comments
 (0)