Skip to content

Commit 01a4419

Browse files
authored
Merge pull request #16 from leviy/allow-useful-annotations
Allow all usefull annotations
2 parents 9b6e8fb + 902a505 commit 01a4419

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"dealerdirect/phpcodesniffer-composer-installer": "^0.4.4",
1515
"escapestudios/symfony2-coding-standard": "^3.0",
1616
"phpmd/phpmd": "^2.6",
17-
"slevomat/coding-standard": "^4.5",
17+
"slevomat/coding-standard": "^4.6",
1818
"squizlabs/php_codesniffer": "^3.0"
1919
},
2020
"require-dev": {

composer.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/LEVIY/ruleset.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
the use of native type hints is impossible. -->
6767
<rule ref="SlevomatCodingStandard.TypeHints.TypeHintDeclaration">
6868
<properties>
69-
<property name="usefulAnnotations" type="array" value="@dataProvider,@Given,@When,@Then"/>
69+
<property name="allAnnotationsAreUseful" value="true"/>
7070
</properties>
7171
</rule>
7272

tests/correct/annotations.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
declare(strict_types=1);
33

44
/**
5-
* @dataProvider
5+
* @whatever
66
*/
7-
function dataProviderAnnotationsAreAllowed(): void
7+
function allUsefulAnnotationsAreAllowed(): void
88
{
99
}

0 commit comments

Comments
 (0)