File tree Expand file tree Collapse file tree 5 files changed +32
-2
lines changed Expand file tree Collapse file tree 5 files changed +32
-2
lines changed Original file line number Diff line number Diff line change 10
10
/phpstan.src.neon.dist export-ignore
11
11
/phpstan.tests.neon.dist export-ignore
12
12
/phpunit.xml.dist export-ignore
13
+ /psalm-baseline.xml export-ignore
13
14
/psalm.xml export-ignore
14
15
/README.md export-ignore
15
16
/UPGRADING.md export-ignore
Original file line number Diff line number Diff line change @@ -14,6 +14,9 @@ phpstan-analyze-tests:
14
14
psalm-analyze :
15
15
@docker run -it -w /data -v ${PWD} :/data:delegated --entrypoint vendor/bin/psalm.phar --rm registry.gitlab.com/grahamcampbell/php:7.4-cli
16
16
17
+ psalm-baseline :
18
+ @docker run -it -w /data -v ${PWD} :/data:delegated --entrypoint vendor/bin/psalm.phar --rm registry.gitlab.com/grahamcampbell/php:7.4-cli --set-baseline=psalm-baseline.xml
19
+
17
20
psalm-show-info :
18
21
@docker run -it -w /data -v ${PWD} :/data:delegated --entrypoint vendor/bin/psalm.phar --rm registry.gitlab.com/grahamcampbell/php:7.4-cli --show-info=true
19
22
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <files psalm-version =" 4.2.1@ea9cb72143b77e7520c52fa37290bd8d8bc88fd9" >
3
+ <file src =" src/Parser/EntryParser.php" >
4
+ <MissingClosureReturnType occurrences =" 1" >
5
+ <code >static function (array $data) {</code >
6
+ </MissingClosureReturnType >
7
+ </file >
8
+ <file src =" src/Repository/RepositoryBuilder.php" >
9
+ <InvalidStringClass occurrences =" 3" >
10
+ <code >$adapter::create()</code >
11
+ <code >$reader::create()</code >
12
+ <code >$writer::create()</code >
13
+ </InvalidStringClass >
14
+ <MissingClosureReturnType occurrences =" 3" >
15
+ <code >static function ($adapter) {</code >
16
+ <code >static function ($reader) {</code >
17
+ <code >static function ($writer) {</code >
18
+ </MissingClosureReturnType >
19
+ </file >
20
+ <file src =" src/Util/Regex.php" >
21
+ <UndefinedFunction occurrences =" 1" >
22
+ <code >\preg_last_error_msg()</code >
23
+ </UndefinedFunction >
24
+ </file >
25
+ </files >
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" ?>
2
2
<psalm
3
- errorLevel =" 4 "
3
+ errorLevel =" 2 "
4
4
resolveFromConfigFile =" true"
5
5
xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
6
6
xmlns =" https://getpsalm.org/schema/config"
7
7
xsi : schemaLocation =" https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
8
+ errorBaseline =" psalm-baseline.xml"
8
9
>
9
10
<projectFiles >
10
11
<directory name =" src" />
Original file line number Diff line number Diff line change 3
3
"phpstan/phpstan" : " 0.12.58" ,
4
4
"phpstan/extension-installer" : " 1.0.5" ,
5
5
"phpstan/phpstan-deprecation-rules" : " 0.12.5" ,
6
- "phpstan/phpstan-phpunit" : " ~ 0.12.11 " ,
6
+ "phpstan/phpstan-phpunit" : " 0.12.16 " ,
7
7
"phpstan/phpstan-strict-rules" : " 0.12.5" ,
8
8
"thecodingmachine/phpstan-strict-rules" : " 0.12.1"
9
9
},
You can’t perform that action at this time.
0 commit comments