Skip to content

Commit e3e5c13

Browse files
Kalipso0505claude
andcommitted
Update PHPStan config and baseline
- Rename deprecated excludes_analyse to excludePaths - Remove stale ignoreErrors pattern for PHPCSTD_ constants - Add pre-existing errors in Config.php and RunCommand.php to baseline (uncovered by the now-working PHPStan config) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 30e7593 commit e3e5c13

2 files changed

Lines changed: 47 additions & 5 deletions

File tree

phpstan-baseline.neon

Lines changed: 46 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,51 @@ parameters:
3131
path: src/Tools/Tool.php
3232

3333
-
34-
message: "#^Parameter \\#1 \\$commandName of method Symfony\\\\Component\\\\Console\\\\Application\\:\\:setDefaultCommand\\(\\) expects string, string\\|null given\\.$#"
34+
message: "#^Method Spaceemotion\\\\PhpCodingStandard\\\\Config\\:\\:getSources\\(\\) should return array\\<string\\> but returns mixed\\.$#"
3535
count: 1
36-
path: src/main.php
36+
path: src/Config.php
3737

38+
-
39+
message: "#^Cannot access offset 'enabled' on mixed\\.$#"
40+
count: 1
41+
path: src/Config.php
42+
43+
-
44+
message: "#^Parameter \\#1 \\$base of static method Spaceemotion\\\\PhpCodingStandard\\\\Config\\:\\:mergeConfig\\(\\) expects array, mixed given\\.$#"
45+
count: 1
46+
path: src/Config.php
47+
48+
-
49+
message: "#^Method Spaceemotion\\\\PhpCodingStandard\\\\Config\\:\\:readConfigs\\(\\) return type has no value type specified in iterable type array\\.$#"
50+
count: 1
51+
path: src/Config.php
52+
53+
-
54+
message: "#^Call to function array_filter\\(\\) requires parameter \\#2 to be passed to avoid loose comparison semantics\\.$#"
55+
count: 1
56+
path: src/Config.php
57+
58+
-
59+
message: "#^Parameter \\#1 \\$array \\(array\\{non\\-falsy\\-string, non\\-falsy\\-string\\}\\) to function array_filter does not contain falsy values, the array will always stay the same\\.$#"
60+
count: 1
61+
path: src/Config.php
62+
63+
-
64+
message: "#^Binary operation \"\\.\" between non\\-falsy\\-string and mixed results in an error\\.$#"
65+
count: 1
66+
path: src/Config.php
67+
68+
-
69+
message: "#^Part \\$include \\(mixed\\) of encapsed string cannot be cast to string\\.$#"
70+
count: 2
71+
path: src/Config.php
72+
73+
-
74+
message: "#^Parameter \\#1 \\$callback of function array_map expects \\(callable\\(mixed\\)\\: mixed\\)\\|null, 'strval' given\\.$#"
75+
count: 1
76+
path: src/Commands/RunCommand.php
77+
78+
-
79+
message: "#^Call to function array_filter\\(\\) requires parameter \\#2 to be passed to avoid loose comparison semantics\\.$#"
80+
count: 1
81+
path: src/Commands/RunCommand.php

phpstan.neon

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,10 @@ parameters:
1111
- src
1212
- tests
1313

14-
excludes_analyse:
14+
excludePaths:
1515
- ecs.php
1616

1717
ignoreErrors:
18-
- '#Constant PHPCSTD_#'
19-
2018
-
2119
message: '#no typehint specified#'
2220
path: src/Tools/PhpParallelLint/ContextOutput.php

0 commit comments

Comments
 (0)