Skip to content

Commit e1b5a12

Browse files
committed
Fix CS
1 parent 37d587e commit e1b5a12

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

phpstan-baseline.neon

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,11 @@ parameters:
33
-
44
message: '#no value type specified in iterable type array#'
55
path: tests/
6+
- # PHP 8 is required
7+
message: '#testContainsOnlyScalarValuesInputError\(\) has parameter \$input with no type specified#'
8+
paths:
9+
- tests/ScalarValuesTest.php
10+
- # PHP 8 is required
11+
message: '#testFilterScalarValuesInputError\(\) has parameter \$input with no type specified#'
12+
paths:
13+
- tests/ScalarValuesTest.php

tests/ScalarValuesTest.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,12 @@ public function getTestContainsOnlyScalarValuesProdiver(): array
4949
}
5050

5151
/**
52-
* @param mixed $input
53-
*
5452
* @dataProvider getNotArrayInputProdiver
5553
*/
5654
public function testContainsOnlyScalarValuesInputError($input): void
5755
{
5856
$this->expectException(\TypeError::class);
59-
ScalarValues::containsOnlyScalarValues($input); // @phpstan-ignore-line
57+
ScalarValues::containsOnlyScalarValues($input);
6058
}
6159

6260
public function getNotArrayInputProdiver(): array
@@ -101,13 +99,11 @@ public function getTestFilterScalarValuesProdiver(): array
10199
}
102100

103101
/**
104-
* @param mixed $input
105-
*
106102
* @dataProvider getNotArrayInputProdiver
107103
*/
108104
public function testFilterScalarValuesInputError($input): void
109105
{
110106
$this->expectException(\TypeError::class);
111-
ScalarValues::filterScalarValues($input); // @phpstan-ignore-line
107+
ScalarValues::filterScalarValues($input);
112108
}
113109
}

0 commit comments

Comments
 (0)