Skip to content

Commit 2c08848

Browse files
committed
fix phsptan
1 parent 00ad499 commit 2c08848

File tree

3 files changed

+60
-6
lines changed

3 files changed

+60
-6
lines changed

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ phpunit.xml export-ignore
77
/ecs.php export-ignore
88
/phpstan.neon export-ignore
99
/rector.php export-ignore
10+
/phpstan-baseline.neon export-ignore

phpstan-baseline.neon

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
parameters:
2+
ignoreErrors:
3+
-
4+
message: "#^Public method \"Symplify\\\\RuleDocGenerator\\\\ValueObject\\\\CodeSample\\\\ComposerJsonAwareCodeSample\\:\\:getComposerJson\\(\\)\" is never used$#"
5+
count: 1
6+
path: src/ValueObject/CodeSample/ComposerJsonAwareCodeSample.php
7+
8+
-
9+
message: "#^Public method \"Symplify\\\\RuleDocGenerator\\\\ValueObject\\\\CodeSample\\\\ConfiguredCodeSample\\:\\:getConfiguration\\(\\)\" is never used$#"
10+
count: 1
11+
path: src/ValueObject/CodeSample/ConfiguredCodeSample.php
12+
13+
-
14+
message: "#^Public method \"Symplify\\\\RuleDocGenerator\\\\ValueObject\\\\CodeSample\\\\ExtraFileCodeSample\\:\\:getExtraFile\\(\\)\" is never used$#"
15+
count: 1
16+
path: src/ValueObject/CodeSample/ExtraFileCodeSample.php
17+
18+
-
19+
message: "#^Public method \"Symplify\\\\RuleDocGenerator\\\\ValueObject\\\\RuleDefinition\\:\\:getCodeSamples\\(\\)\" is never used$#"
20+
count: 1
21+
path: src/ValueObject/RuleDefinition.php
22+
23+
-
24+
message: "#^Public method \"Symplify\\\\RuleDocGenerator\\\\ValueObject\\\\RuleDefinition\\:\\:getDescription\\(\\)\" is never used$#"
25+
count: 1
26+
path: src/ValueObject/RuleDefinition.php
27+
28+
-
29+
message: "#^Public method \"Symplify\\\\RuleDocGenerator\\\\ValueObject\\\\RuleDefinition\\:\\:getRuleClass\\(\\)\" is never used$#"
30+
count: 1
31+
path: src/ValueObject/RuleDefinition.php
32+
33+
-
34+
message: "#^Public method \"Symplify\\\\RuleDocGenerator\\\\ValueObject\\\\RuleDefinition\\:\\:getRuleFilePath\\(\\)\" is never used$#"
35+
count: 1
36+
path: src/ValueObject/RuleDefinition.php
37+
38+
-
39+
message: "#^Public method \"Symplify\\\\RuleDocGenerator\\\\ValueObject\\\\RuleDefinition\\:\\:getRuleShortClass\\(\\)\" is never used$#"
40+
count: 1
41+
path: src/ValueObject/RuleDefinition.php
42+
43+
-
44+
message: "#^Public method \"Symplify\\\\RuleDocGenerator\\\\ValueObject\\\\RuleDefinition\\:\\:isConfigurable\\(\\)\" is never used$#"
45+
count: 1
46+
path: src/ValueObject/RuleDefinition.php
47+
48+
-
49+
message: "#^Public method \"Symplify\\\\RuleDocGenerator\\\\ValueObject\\\\RuleDefinition\\:\\:setRuleClass\\(\\)\" is never used$#"
50+
count: 1
51+
path: src/ValueObject/RuleDefinition.php
52+
53+
-
54+
message: "#^Public method \"Symplify\\\\RuleDocGenerator\\\\ValueObject\\\\RuleDefinition\\:\\:setRuleFilePath\\(\\)\" is never used$#"
55+
count: 1
56+
path: src/ValueObject/RuleDefinition.php

phpstan.neon

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
1+
includes:
2+
- phpstan-baseline.neon
3+
14
parameters:
25
level: 8
36

47
paths:
58
- src
6-
- tests
7-
8-
excludePaths:
9-
- '*/tests/**/Source/*'
10-
- '*/tests/**/Fixture/*'
11-
- '*/tests/**/data/*'
129

1310
unused_public:
1411
methods: true

0 commit comments

Comments
 (0)