Skip to content

Commit aa40b19

Browse files
committed
fix: suppress mixed type hint warnings in PhpCsFixer classes
1 parent bac37cd commit aa40b19

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

IxDFCodingStandard/PhpCsFixer/Config.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
*/
1313
final class Config
1414
{
15-
/** @param array<string, mixed> $ruleOverrides Rules to merge on top of the shared ruleset */
15+
// phpcs:ignore SlevomatCodingStandard.TypeHints.DisallowMixedTypeHint.DisallowedMixedTypeHint
16+
/** @param array<string, array<string, mixed>|bool> $ruleOverrides Rules to merge on top of the shared ruleset */
1617
public static function create(string $projectDir, array $ruleOverrides = [], ?Finder $finder = null): BaseConfig
1718
{
1819
$finder ??= self::defaultFinder($projectDir);

IxDFCodingStandard/PhpCsFixer/Rules.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@
88
*/
99
final class Rules
1010
{
11-
/** @var array<string, mixed>|null */
11+
// phpcs:ignore SlevomatCodingStandard.TypeHints.DisallowMixedTypeHint.DisallowedMixedTypeHint
12+
/** @var array<string, array<string, mixed>|bool>|null */
1213
private static ?array $rules = null;
1314

14-
/** @return array<string, mixed> */
15+
// phpcs:ignore SlevomatCodingStandard.TypeHints.DisallowMixedTypeHint.DisallowedMixedTypeHint
16+
/** @return array<string, array<string, mixed>|bool> */
1517
public static function get(): array
1618
{
1719
return self::$rules ??= require dirname(__DIR__, 2).'/.php-cs-fixer-rules.php';

0 commit comments

Comments
 (0)