File tree 6 files changed +20
-7
lines changed
6 files changed +20
-7
lines changed Original file line number Diff line number Diff line change 24
24
jobs :
25
25
coding-standards :
26
26
name : " Coding Standards"
27
- uses : " doctrine/.github/.github/workflows/coding-standards.yml@3 .0.0"
27
+ uses : " doctrine/.github/.github/workflows/coding-standards.yml@4 .0.0"
Original file line number Diff line number Diff line change 26
26
jobs :
27
27
static-analysis :
28
28
name : " Static Analysis"
29
- uses : " doctrine/.github/.github/workflows/static-analysis.yml@3 .0.0"
29
+ uses : " doctrine/.github/.github/workflows/static-analysis.yml@4 .0.0"
Original file line number Diff line number Diff line change 30
30
"doctrine/deprecations" : " ^1.0"
31
31
},
32
32
"require-dev" : {
33
- "doctrine/coding-standard" : " ^9 || ^10 " ,
33
+ "doctrine/coding-standard" : " ^9 || ^12 " ,
34
34
"phpstan/phpstan" : " ^1.3" ,
35
35
"phpunit/phpunit" : " ^7.5 || ^8.5 || ^9.5" ,
36
36
"psalm/plugin-phpunit" : " ^0.18.3" ,
37
- "vimeo/psalm" : " ^4.11 || ^5.0 "
37
+ "vimeo/psalm" : " ^4.11 || ^5.21 "
38
38
},
39
39
"autoload" : {
40
40
"psr-4" : {
Original file line number Diff line number Diff line change 9
9
<config name =" php_version" value =" 70100" />
10
10
11
11
<!-- Ignore warnings and show progress of the run -->
12
- <arg value =" np " />
12
+ <arg value =" nps " />
13
13
14
14
<file >src</file >
15
15
<file >tests</file >
32
32
<!-- Remove when dropping PHPUnit 7 -->
33
33
<exclude-pattern >tests/*</exclude-pattern >
34
34
</rule >
35
+
36
+ <rule ref =" SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingAnyTypeHint" >
37
+ <!-- The sniff does not interpret @inheritDoc correctly anymore -->
38
+ <exclude-pattern >src/Token.php</exclude-pattern >
39
+ </rule >
35
40
</ruleset >
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" ?>
2
2
<psalm
3
3
errorLevel =" 1"
4
- phpVersion =" 8.1 "
4
+ phpVersion =" 8.3 "
5
5
resolveFromConfigFile =" true"
6
6
xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
7
7
xmlns =" https://getpsalm.org/schema/config"
8
8
xsi : schemaLocation =" https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
9
+ findUnusedBaselineEntry =" true"
10
+ findUnusedCode =" true"
9
11
>
10
12
<projectFiles >
11
13
<directory name =" src" />
52
54
<file name =" src/Token.php" />
53
55
</errorLevel >
54
56
</MixedReturnStatement >
57
+ <PossiblyUnusedProperty >
58
+ <errorLevel type =" suppress" >
59
+ <!-- TODO: Cover this property in a test -->
60
+ <referencedProperty name =" Doctrine\Common\Lexer\Token::$position" />
61
+ </errorLevel >
62
+ </PossiblyUnusedProperty >
55
63
<ReferenceConstraintViolation >
56
64
<errorLevel type =" suppress" >
57
65
<!-- https://github.com/vimeo/psalm/issues/8891 -->
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ abstract class AbstractLexer
70
70
/**
71
71
* Composed regex for input parsing.
72
72
*
73
- * @var string|null
73
+ * @var non-empty- string|null
74
74
*/
75
75
private $ regex ;
76
76
You can’t perform that action at this time.
0 commit comments