Skip to content

Commit 60fe3d7

Browse files
Ignore PHPStan errors in test cases for errors
1 parent 3cab7c1 commit 60fe3d7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/tests/Target/MapperTest.php

+4
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ public static function invalidProvider(): array
122122
'Class DoesNotExist is not a valid target for code coverage',
123123
TargetCollection::fromArray(
124124
[
125+
/** @phpstan-ignore argument.type */
125126
Target::forClass('DoesNotExist'),
126127
],
127128
),
@@ -130,6 +131,7 @@ public static function invalidProvider(): array
130131
'Classes that extend class DoesNotExist is not a valid target for code coverage',
131132
TargetCollection::fromArray(
132133
[
134+
/** @phpstan-ignore argument.type */
133135
Target::forClassesThatExtendClass('DoesNotExist'),
134136
],
135137
),
@@ -138,6 +140,7 @@ public static function invalidProvider(): array
138140
'Classes that implement interface DoesNotExist is not a valid target for code coverage',
139141
TargetCollection::fromArray(
140142
[
143+
/** @phpstan-ignore argument.type */
141144
Target::forClassesThatImplementInterface('DoesNotExist'),
142145
],
143146
),
@@ -154,6 +157,7 @@ public static function invalidProvider(): array
154157
'Method DoesNotExist::doesNotExist is not a valid target for code coverage',
155158
TargetCollection::fromArray(
156159
[
160+
/** @phpstan-ignore argument.type */
157161
Target::forMethod('DoesNotExist', 'doesNotExist'),
158162
],
159163
),

0 commit comments

Comments
 (0)