Skip to content

Commit

Permalink
Update psalm (#1339)
Browse files Browse the repository at this point in the history
Signed-off-by: Nathanael Esayeas <nathanael.esayeas@protonmail.com>
  • Loading branch information
ghostwriter committed Nov 16, 2023
2 parents c1f6f09 + 5daffbb commit ba41069
Show file tree
Hide file tree
Showing 8 changed files with 2,609 additions and 3,359 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/psalm.yml
Expand Up @@ -23,9 +23,8 @@ jobs:
- name: Set up php
uses: shivammathur/setup-php@v2
with:
php-version: 7.3
coverage: pcov
ini-values: assert.exception=1, zend.assertions=1, error_reporting=-1, log_errors_max_len=0, display_errors=On
coverage: none
php-version: 8.2

- name: Get composer cache directory
id: composer-cache
Expand Down
4 changes: 4 additions & 0 deletions .phive/phars.xml
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<phive xmlns="https://phar.io/phive">
<phar name="psalm" version="^5.15.0" installed="5.15.0" location="./.phive/tools/psalm" copy="true"/>
</phive>
1,122 changes: 1,122 additions & 0 deletions .phive/tools/phive.phar

Large diffs are not rendered by default.

Binary file added .phive/tools/psalm
Binary file not shown.
30 changes: 15 additions & 15 deletions composer.json
Expand Up @@ -50,9 +50,7 @@
},
"require-dev": {
"phpunit/phpunit": "^8.5 || ^9.6.10",
"psalm/plugin-phpunit": "^0.18.4",
"symplify/easy-coding-standard": "^11.5.0",
"vimeo/psalm": "^4.30"
"symplify/easy-coding-standard": "^12.0.8"
},
"conflict": {
"phpunit/phpunit": "<8.0"
Expand All @@ -62,8 +60,8 @@
"Mockery\\": "library/Mockery"
},
"files": [
"library/helpers.php",
"library/Mockery.php"
"library/helpers.php",
"library/Mockery.php"
]
},
"autoload-dev": {
Expand Down Expand Up @@ -98,20 +96,22 @@
],
"ecs:check": "ecs check --clear-cache || true",
"ecs:fix": "ecs check --clear-cache --fix",
"phive": [
".phive/tools/phive.phar selfupdate",
".phive/tools/phive.phar update --force-accept-unsigned",
".phive/tools/phive.phar purge"
],
"phpunit": "vendor/bin/phpunit --colors=always --testdox --stop-on-failure",
"phpunit:coverage": "vendor/bin/phpunit --colors=always --testdox --stop-on-failure --coverage-clover=coverage.xml",
"psalm": [
"@psalm:shepherd",
"psalm": ".phive/tools/psalm --no-diff --no-cache --shepherd --stats --output-format=github",
"psalm:baseline": ".phive/tools/psalm --no-diff --no-cache --set-baseline=psalm-baseline.xml",
"psalm:dry-run": ".phive/tools/psalm --no-cache --alter --issues=all --dry-run",
"psalm:security": ".phive/tools/psalm --no-diff --no-cache --taint-analysis",
"test": [
"@phpunit --stop-on-defect",
"@psalm",
"@psalm:security",
"@psalm:dry-run"
],
"psalm:baseline": "vendor/bin/psalm --no-diff --no-cache --set-baseline=psalm-baseline.xml",
"psalm:dry-run": "vendor/bin/psalm --no-cache --alter --issues=all --dry-run",
"psalm:security": "vendor/bin/psalm --no-diff --no-cache --taint-analysis",
"psalm:shepherd": "vendor/bin/psalm --no-diff --no-cache --shepherd --stats --output-format=github",
"test": [
"@phpunit",
"@psalm"
]
}
}

0 comments on commit ba41069

Please sign in to comment.