Skip to content

Commit 7cee982

Browse files
authored
Merge pull request #376 from asgrim/switch-to-phpstan
Switch to phpstan
2 parents 17126f0 + 58bca66 commit 7cee982

54 files changed

Lines changed: 1138 additions & 2443 deletions

File tree

Some content is hidden

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

.github/workflows/continuous-integration.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,8 @@ jobs:
185185
- uses: ramsey/composer-install@v3
186186
- name: Validate the composer configuration
187187
run: composer validate --strict
188-
- name: Run Psalm
189-
run: vendor/bin/psalm
188+
- name: Run phpstan
189+
run: vendor/bin/phpstan
190190

191191
build-phar:
192192
needs:

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
/vendor/
2-
/psalm.xml
32
/.phpunit.cache/
43
/.phpunit.result.cache
54
/.phpcs-cache
65
phpcs.xml
76
phpunit.xml
8-
psalm.xml
97
behat.yml
108
box.json
119
box.phar

bin/pie

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ if (PieVersion::isPharBuild()) {
2929
error_reporting(error_reporting() & ~E_DEPRECATED);
3030
}
3131

32-
/** @psalm-suppress UnresolvableInclude */
3332
include $_composer_autoload_path ?? __DIR__ . '/../vendor/autoload.php';
3433

3534
$container = Container::factory();

composer.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,8 @@
4343
"ext-openssl": "*",
4444
"behat/behat": "^3.23.0",
4545
"doctrine/coding-standard": "^13.0.1",
46-
"phpunit/phpunit": "^10.5.48",
47-
"psalm/plugin-phpunit": "^0.19.5",
48-
"vimeo/psalm": "^6.13.1"
46+
"phpstan/phpstan": "^2.1",
47+
"phpunit/phpunit": "^10.5.48"
4948
},
5049
"replace": {
5150
"symfony/polyfill-php81": "*",

0 commit comments

Comments
 (0)