Skip to content

Commit c86273d

Browse files
Nic WortelVSlokker
authored andcommitted
Merged in allow-test-annotations (pull request #7)
Allow test annotations such as @dataProvider and @given, @when, Then Approved-by: Viktor Slokker <vslokker@leviy.com>
2 parents e7b45da + 11491db commit c86273d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/LEVIY/ruleset.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,11 @@
5050

5151
<!-- Use PHP native type hints whenever possible. Use docblocks only when
5252
the use of native type hints is impossible. -->
53-
<rule ref="SlevomatCodingStandard.TypeHints.TypeHintDeclaration"/>
53+
<rule ref="SlevomatCodingStandard.TypeHints.TypeHintDeclaration">
54+
<properties>
55+
<property name="usefulAnnotations" type="array" value="@dataProvider,@Given,@When,@Then"/>
56+
</properties>
57+
</rule>
5458

5559
<!-- Ensure that arguments with a default type of null are marked nullable -->
5660
<rule ref="SlevomatCodingStandard.TypeHints.NullableTypeForNullDefaultValue"/>

0 commit comments

Comments
 (0)