Skip to content

Commit 81d048d

Browse files
Use PHPStan instead of Psalm
1 parent d0c929d commit 81d048d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+288
-493
lines changed

Diff for: .gitattributes

+12-12
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
/.gitattributes export-ignore
2-
/.gitignore export-ignore
3-
/.github export-ignore
4-
/.phive export-ignore
5-
/.php-cs-fixer.dist.php export-ignore
6-
/.psalm export-ignore
7-
/build export-ignore
8-
/build.xml export-ignore
9-
/phpunit.xml export-ignore
10-
/tests export-ignore
11-
/tools export-ignore
12-
/tools/* binary
1+
/.gitattributes export-ignore
2+
/.gitignore export-ignore
3+
/.github export-ignore
4+
/.phive export-ignore
5+
/.php-cs-fixer.dist.php export-ignore
6+
/build export-ignore
7+
/build.xml export-ignore
8+
/phpstan.neon export-ignore
9+
/phpunit.xml export-ignore
10+
/tests export-ignore
11+
/tools export-ignore
12+
/tools/* binary
1313

1414
*.php diff=php

Diff for: .github/workflows/ci.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ jobs:
3030
- name: Run PHP-CS-Fixer
3131
run: ./tools/php-cs-fixer fix --dry-run --show-progress=dots --using-cache=no --verbose
3232

33-
type-checker:
34-
name: Type Checker
33+
static-analysis:
34+
name: Static Analysis
3535

3636
runs-on: ubuntu-latest
3737

@@ -47,11 +47,11 @@ jobs:
4747
coverage: none
4848
tools: none
4949

50-
- name: Update dependencies with composer
50+
- name: Install dependencies with Composer
5151
run: ./tools/composer update --no-interaction --no-ansi --no-progress
5252

53-
- name: Run vimeo/psalm
54-
run: ./tools/psalm --config=.psalm/config.xml --no-progress --shepherd --show-info=false --stats
53+
- name: Run PHPStan
54+
run: ./tools/phpstan analyse --no-progress --error-format=github
5555

5656
tests:
5757
name: Tests

Diff for: .gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@
22
/.php-cs-fixer.php
33
/.php-cs-fixer.cache
44
/.phpunit.cache
5-
/.psalm/cache
65
/composer.lock
76
/vendor

Diff for: .phive/phars.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phive xmlns="https://phar.io/phive">
3-
<phar name="php-cs-fixer" version="^3.0" installed="3.41.1" location="./tools/php-cs-fixer" copy="true"/>
4-
<phar name="psalm" version="^5.0" installed="5.18.0" location="./tools/psalm" copy="true"/>
5-
<phar name="composer" version="^2.0.3" installed="2.6.6" location="./tools/composer" copy="true"/>
3+
<phar name="php-cs-fixer" version="^3.59" installed="3.59.3" location="./tools/php-cs-fixer" copy="true"/>
4+
<phar name="composer" version="^2.7" installed="2.7.7" location="./tools/composer" copy="true"/>
5+
<phar name="phpstan" version="^1.11" installed="1.11.5" location="./tools/phpstan" copy="true"/>
66
</phive>

Diff for: .psalm/baseline.xml

-263
This file was deleted.

Diff for: .psalm/config.xml

-18
This file was deleted.

Diff for: README.md

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
[![Latest Stable Version](https://poser.pugx.org/phpunit/php-code-coverage/v/stable.png)](https://packagist.org/packages/phpunit/php-code-coverage)
44
[![CI Status](https://github.com/sebastianbergmann/php-code-coverage/workflows/CI/badge.svg)](https://github.com/sebastianbergmann/php-code-coverage/actions)
5-
[![Type Coverage](https://shepherd.dev/github/sebastianbergmann/php-code-coverage/coverage.svg)](https://shepherd.dev/github/sebastianbergmann/php-code-coverage)
65
[![codecov](https://codecov.io/gh/sebastianbergmann/php-code-coverage/branch/main/graph/badge.svg)](https://codecov.io/gh/sebastianbergmann/php-code-coverage)
76

87
Provides collection, processing, and rendering functionality for PHP code coverage information.

Diff for: composer.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,8 @@
5656
]
5757
},
5858
"autoload-dev": {
59-
"files": [
60-
"tests/TestCase.php",
61-
"tests/_files/BankAccountTest.php"
59+
"classmap": [
60+
"tests/"
6261
]
6362
},
6463
"extra": {

0 commit comments

Comments
 (0)